declare
v_name all_tables.table_name%type;
cursor mycur is select table_name from all_tables where owner='TEST';
begin
open mycur;
loop
fetch mycur into v_name;
exit when mycur%NOTFOUND OR mycur%NOTFOUND IS NULL;
execute immediate 'drop table '|| v_name;
end loop;
close mycur;
扫描二维码关注公众号,回复:
2680185 查看本文章
end;