oracle 将查询结果输出到txt文件里

在查询语句里先输入spool filepath 中间是需要查询的语句,最后spool off 就会把中间查询的结果都输入到file文件里

spool E:log.txt;

select id,name from users;

spool off;

原文地址:https://www.cnblogs.com/lingbing/p/6386944.html