spool導出實例
spool /home/mocsa/subsid_addmoney
select t
from T_ACCTWATER t
where (trunc(t
and t
and t
from T_ACCTWATER
where (trunc(TRANSTIME
and trunc(to_date(
and TRANSTYPE =
group by SubsId
having sum(TRANSMONEY)>
group by t
spool off;
From:http://tw.wingwit.com/Article/program/Oracle/201311/18475.html