【发布时间】:2011-01-20 07:21:12
【问题描述】:
我在 SQLplus 中运行了这个
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 语句?谢谢
【问题讨论】: