从mysql导入及导出csv

csv导入:

load data local infile 'D:/pcode/shu/data/a.csv' into table a  fields terminated by ',';

csv导出:

select * from b order by trade_dt into outfile 'd://output1.csv' fields terminated by ','optionally enclosed by ''lines terminated by'
';

 

标红为变量

原文地址:https://www.cnblogs.com/xiaobaichuangtianxia/p/7159105.html