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

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。
oracle怎样删除所有表
语法为:
select 'Drop table '||table_name||';' from all_tables where owner='要删除所有表的用户名(大写)';示例如下:

推荐教程:《Oracle视频教程》
以上就是oracle怎样删除所有表的详细内容,转载自php中文网

发表评论 取消回复