oracle 在sql developer里批量删除表

我左边将表全选中后,编辑里点删除。然后为什么表还在?要一口气删100多个表,我不想一条条打sql语句。求帮助!
回收站里有很多表,怎么一下全清空!

创建存储过程

create or replace PROCEDURE SP_DROPTABLE
(v_begintime in varchar2,
v_endtime in varchar2)
as
v_tablename varchar2(256);
cursor cur_tablename is
select object_name from user_objects where object_type='TABLE' and to_char(CREATED,'yyyy-mm-dd')
between v_begintime
and v_endtime order by CREATED desc;
begin
open cur_tablename;
loop
fetch cur_tablename into v_tablename;
exit when cur_tablename%notfound;
execute immediate 'drop table '||v_tablename||'';
end loop;
close cur_tablename;
end sp_droptable;



执行存储过程

begin
SP_DROPTABLE('1999-01-01','2999-12-31');
end;


这个是把表干掉,不是清空数据哦,有疑问请追问

温馨提示:答案为网友推荐,仅供参考
相似回答