快速删除oracle当前用户下所有表

1.查询当前用户下所有的表名,并拼接删除表的Sql语句

select 'drop table ' || table_name || ' cascade constraints;' from user_tables;

2 将生成的语句进行复制执行

发布了72 篇原创文章 · 获赞 24 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/oYinHeZhiGuang/article/details/104592849