1 将查询数据导出 select * from person where id<500 into outfile 'D:\\person_data.txt' 语法: sql 查询 into outfile ‘目标路径’ 注意:需要mysql目录下的my.ini文件中的 secure_file_pri