在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怎样删除所有表的详细内容。