mysql将查询结果导出csv文件的方法into outfile
例句:
select * from table_name into outfile '/tmp/tmp.csv' fields terminated by ',';
详解:
① into outfile '/tmp/tmp.csv' 指定导出文件的目录和文件名
② fields terminated by ',' 将数据以逗号“,”隔开
posted on 2018-10-31 18:11 ExplorerMan 阅读(1183) 评论(0) 收藏 举报