-- 创建表
create table test_A ( pk_test char);
-- 删表
drop table test_A;
-- 查询该表
select * from test_A;
可以看到找不到这个表了。
-- 查询回收站
select * from user_recyclebin order by droptime desc;
这里用 droptime 删除时间排下序,第一个就是我们删的。
-- 回收表
flashback table test_A to before drop;
-- 再次查询该表
select * from test_A;
可以看到有这个表了,只是我们的表是空表,没数据而已。
喜欢的点个赞❤吧!
我的博客即将同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan