线上的数据太大了 ,管理后台导不出数据,直接通过命令行导出,在此记录一下:
select field1,field2,field3 from tble where task_id=136 and check_result=1 into outfile '/tmp/wg137-3.csv' FIELDS TERMINATED BY ',';
线上的数据太大了 ,管理后台导不出数据,直接通过命令行导出,在此记录一下:
select field1,field2,field3 from tble where task_id=136 and check_result=1 into outfile '/tmp/wg137-3.csv' FIELDS TERMINATED BY ',';
本文标题:MySQL 自定义sql 导出到csv文件
本文链接:https://www.haomeiwen.com/subject/mamfaktx.html
网友评论