前端之家收集整理的这篇文章主要介绍了
PlSQL DROP 表后找回表和数据,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
select * from user_recyclebin where DROPTIME >'2012-02-22 00:00:00';
select 'drop table '||ORIGINAL_NAME||' cascade constraint;' from user_recyclebin where DROPTIME >'2010-02-08 09:00:00' and type = 'TABLE';
select 'flashback table '||ORIGINAL_NAME||' to before drop;' from user_recyclebin where DROPTIME >'2012-02-22 17:00:00' and type = 'TABLE';
select 'ALTER INDEX "'||OBJECT_NAME||'" rename to '||ORIGINAL_NAME||';' from user_recyclebin where DROPTIME >'2012-02-22 17:00:00' and type = 'INDEX';
select 'ALTER TRIGGER "'||OBJECT_NAME||'" rename to '||ORIGINAL_NAME||';' from user_recyclebin where DROPTIME >'2012-02-22 17:00:00' and type = 'TRIGGER';