oracle怎样删除所有表

oracle中,可以利用“select ‘Drop table ‘||table_name||’;’ from all_tables where owner=’要删除所有表的用户名’;”语句删除指定用户下的所有表,其中表名需要使用大写

oracle怎样删除所有表

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。

oracle怎样删除所有表

语法为:

select 'Drop table '||table_name||';' from all_tables where owner='要删除所有表的用户名(大写)';

示例如下:

oracle怎样删除所有表

推荐教程:《Oracle视频教程

以上就是

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享