mysql select 導出數據 加分隔符,方便生成Excel和利用python進行數據處理。python
mysql> select ID,VERSION,HEADLINE from news limit 10 INTO OUTFILE "/tmp/1.txt" fields terminated by '|';
導入數據mysql
load data local infile 'test.csv' into table test_field fields terminated by ',' lines terminated by '\n'