共計(jì) 653 個(gè)字符,預(yù)計(jì)需要花費(fèi) 2 分鐘才能閱讀完成。
丸趣 TV 小編給大家分享一下 sqlplus 中如何利用 spool 生成帶日期的文件名,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!
sqlplus 中利用 spool 生成帶日期的文件名
col spf new_value spf noprint
select d: ||to_char(sysdate, yyyymmdd)|| .txt spf from dual;
spo spf
select * from dual;
spo off;[@more@]
–sqlplus 中利用 spool 生成帶日期的文件名
accept un prompt 用戶名:
accept pw prompt 密 碼:hide
accept db prompt 數(shù)據(jù)庫:
connect un/ pw@ db;
pause 繼續(xù)嗎?
set feedback off
set pages 0
set lines 30000
set trims on
set trim on
set ver off
set heading off
set time off
set timing off
set autot off
set echo off
set show off
set term off
col spf new_value spf noprint
select d: ||to_char(sysdate, yyyymmdd)|| .txt spf from dual;
spo spf
select * from dual;
spo off;
exit
看完了這篇文章,相信你對(duì)“sqlplus 中如何利用 spool 生成帶日期的文件名”有了一定的了解,如果想了解更多相關(guān)知識(shí),歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道,感謝各位的閱讀!