Oracle存储过程删除所有表 - pro_droptable
2017-02-06 08:45:35 访问(1921) 赞(0) 踩(0)
create or replace procedure pro_droptable is cursor cur is select table_name from user_tables;
drop_sql varchar2(1000);
begin for tbname in cur loop
begin drop_sql:='drop table '||'"'||tbname.table_name||'"';
execute immediate drop_sql;
end;
end loop;
end pro_droptable;
标签:
Oracle存储过程删除所有表 - pro_droptable 


上一条:
下一条:
相关评论
发表评论