^M
。
[root@kvm8 ~]# cat -EvT /tmp/animals1.txt "2","cat","4"^M$ "3","chicken","2"^M$ "1","dog","4"^M$
^M
。
mysql> load data local infile '/tmp/animals1.txt' into table animals -> fields terminated by ',' -> enclosed by '"' -> lines terminated by '\r\n';
mysql> select * from animals; id name foot 2 cat 4 3 chicken 2 1 dog 4 2 cat 4 3 chicken 2 1 dog 4 2 cat 4 3 chicken 2 1 dog 4 mysql>