spool test.sql
select sysdate from dual;
spool off
--别忘了关
执行完毕后,test.sql输出到, cd /u01/app/oracle/product/11.2.0/dbhome_1/sqlplus/admin test.sql 下
spool test.sql
select sysdate from dual;
spool off
--别忘了关
执行完毕后,test.sql输出到, cd /u01/app/oracle/product/11.2.0/dbhome_1/sqlplus/admin test.sql 下