导出mysql查询结果到文件

select * from user into outfile "g:/1.txt";

原文地址:https://www.cnblogs.com/ykt8465279130/p/3441847.html