Código SQL [-] spool c:\miarhivo.txt; select * from mitabla where condicion; spool off;
spool c:\miarhivo.txt; select * from mitabla where condicion; spool off;