1. 删除表中数据两种方法
a. delete * from table;
b. truncate table table;
2. 删除整个表
drop table table;
如何恢复不小心drop掉的表呢,Oracle 中也有类似的“回收站”
比如不小心删除了表:
drop table table_name;
这时候再用select 语句查询此表时,将会提示表或试图不存在。
但是可以用如下语句进行恢复:
FLASHBACK TABLE my_table to before drop;
删除table 不进入recycle的方法:
彻底的删除某张表:
drop table table_name purge;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21374452/viewspace-2144009/
,如需转载,请注明出处,否则将追究法律责任。