批量查询并删除指定用户下的表和视图

select 'drop table '||TABLE_NAME||';' fromuser_tables;

select 'select * from '||TABLE_NAME||';' from user_tables where table_name LIKE'TEST%';

select 'drop view '||VIEW_NAME||';' fromuser_views;

执行查询语句

删除回收站内容:

select * from user_recyclebin;

purge recyclebin;


猜你喜欢

转载自blog.csdn.net/songpeiying/article/details/79578467
今日推荐