declare begin for vcur in (select t.TABLE_NAME from user_tables t where t.TABLE_NAME like 'Ab%') loop execute immediate 'drop table '||vcur.table_name; end loop; end;
热心网友时间:2022-05-06 20:17
select 'drop table '|| t.TABLE_NAME || ' purge;' from user_tables t where t.TABLE_NAME like 'AB%'; 执行得到的结果 如果是9i以下,不带 purge 选项