删除某用户下所有的表(视图) ——oracle、sql developer

在sql developer内

select 'drop table "'||table_name||'";'
from cat 
where table_type='TABLE'
--查询视图
--select 'drop view '||view_name||';' from user_views

执行输出语句

猜你喜欢

转载自blog.csdn.net/tly_74125/article/details/80990276