これを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
ステートメントを出力するだけにするにはどうすればよいですか? ありがとう