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

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

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

 

相关文章:

  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-12-07
  • 2022-02-08
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-06-18
  • 2021-08-26
  • 2022-01-31
相关资源
相似解决方案