在sql命令中我们可以查询到前数行的表,同时也可以将查询结果输出到txt文档

语句:select * from tablename into outfile 'filename.txt';

例如:select * from mytable limit 100 into outfile ‘1.txt’;将mytable表中的前一百行输出到文件1.txt

 

posted on 2016-08-03 17:37  Planning  阅读(1739)  评论(0编辑  收藏  举报