Oracle:drop table和truncate table及delete from的区别

drop table
truncate table
delete from
属于DDL 属于DDL 属于DML
不可回滚 不可回滚 可回滚
不可带where 不可带where 可带where
表内容和表结构删除 表内容删除

表结构在,
表内容要看where的执行情况
删除速度慢 删除速度慢

删除速度慢,
要逐行删除

猜你喜欢

转载自blog.csdn.net/weixin_41113108/article/details/80318332
今日推荐