首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

ORACLE 剔除一个用户的所有表

2012-08-25 
ORACLE 删除一个用户的所有表select drop|| ||table|| ||table_name|| PURGE from user_tables

ORACLE 删除一个用户的所有表

select 'drop'||' '||'table'||' '||table_name||' PURGE;' from user_tables;

?执行上面这句话(不要作任何修改),可以得到很多个 drop 语句,然后把那些 drop 语句放到一个脚本中,再去执行这个脚本就可以了

热点排行