oracle delete from和 truncate区别

来源:互联网 发布:linux 看目录本身权限 编辑:程序博客网 时间:2024/06/05 08:50
--区别1.delete需要手动提交事务。truncate自动提交事务。
--区别2.delete可以添加where条件,truncate不能添加where条件。
--区别3.delete效率相对低,因为它是一条记录一条记录进行删除。
      --truncate效率相对高,因为它是一页一页的进行删除。
原创粉丝点击