0
嗨,我正在使用Oracle 11G的朋友。我想生成打印報表,所以我寫這個劇本Oracle 11g報告問題
rem Employee Salary Report
set headsep !
ttitle 'Salary Report'
btitle 'From Employees'
column employee_id format 999.99
column first_name format a20
column last_name format a20
column Salary format 999.99
break on employee_id skip 1 on report
set linesize 80
set pagesize 5
set newpage 0
set feedback off
set pause 'More...'
set pause on
spool activity.lst
select employee_id,first_name,last_name,salary from Employees order by employee_id ;
spool off
運行此腳本甲骨文給
line 3: SQLPLUS Command Skipped: set headsep !
line 15: SQLPLUS Command Skipped: set linesize 80
line 16: SQLPLUS Command Skipped: set pagesize 5
line 17: SQLPLUS Command Skipped: set newpage 0
,然後執行查詢,並給出輸出。但是我的報告沒有包含任何標題。意味着報告沒有正確生成。它只是簡單地執行select查詢並給出一個不是報告的輸出。
你在腳本中運行什麼? SQL * Plus,SQL Developer,TOAD? – 2011-03-16 04:19:38