日期:2014-05-17  浏览次数:20971 次

oracle 如何删除表名 包含某一字符的所有表
我在oracle中建立了一系列的backup_开头的表,
现在要把包含backup_的表全部删除,应该如何做?

------解决方案--------------------
select 'drop table' ||table_name||';'from user_tables where table_name like 'backup_%';
------解决方案--------------------
1楼的意思是,让你先SELECT出backup_开头的表名,保存为文件然后执行之。
------解决方案--------------------
select 'drop table' ||table_name||';'from user_tables where table_name like 'backup_%';
直接把结果拷贝出来执行