-- 先备份一下 库
-- 请修改 tablespaceName 名称
declare
vsql varchar2(2000);
cursor c1 is
select 'drop table '||table_name||' cascade constraints' v_name
from user_tables where tablespace_name='tablespaceName';
BEGIN
for i in c1 loop
vsql:=i.v_name;
execute immediate vsql;
end loop;
end;
/
温馨提示:答案为网友推荐,仅供参考