我有這個在sqlplus運行停止假脫機打印使用的SQL查詢(Oracle)的
set feedback off
set pagesize 0
spool TypeDrop.sql
select distinct 'drop type '||object_name|| ';' from user_objects where object_type='TYPE';
spool off
它打印出來TypeDrop.sql:
SQL> select distinct 'drop type '||object_name||';' from user_objects where object_type='TYPE';
drop type ADDRESS_OBJTYP;
drop type PERSON_OBJTYP;
SQL> spool off
我如何得到它只是輸出drop
報表?謝謝