将sql 结果导出到文件

spool abc.txt; #将结果输出为abc.txt
select * from wap_subscribe where Telcomcompanyid = '20200' and (Orderdate like '2005%' or Disorderdate like '2005%');
spool off;

posted @ 2017-05-04 13:27  白鸟li  阅读(382)  评论(0编辑  收藏  举报