mysql可使用 into outfile 参数把表中数据导出到csv,例如可用以下命令把user表的数据导出到user.csv select * from user into outfile '/tmp/user.csv' fields terminated by ',' optionally enclosed by '"' lines terminated by '\r\n'; 执行后,user表的数据会导出到/tmp/user.csv. 参数说明:into outfile ‘导出的目录和文…