zoukankan
html css js c++ java
DELETE和TRUNCATE的区别与联系
DELETE
和
TRUNCATE
都是用来删除表中数据,但是使用方式略有不同:
DELETE的SQL语句可以使用WHERE关键字来关联查询条件,但TRUNCATE的SQL语句不能使用WHERE关键字;
在有自增字段的条件下,DELETE删除后,重新添加的数据从删除前的自增字段值开始增加;TRUNCATE删除后,从初始值开始自增。
在事务中的区别:
DELETE可以使用rollback进行事务回滚;
TRUNCATE使用rollback进行事务回滚无效。
查看全文
相关阅读:
jQuery遍历之siblings()
命名空间
AnsiString
《linux内核完全注释》读书笔记 2
mciSendString
PeekMessage, GetMessage, PostMessage, SendMessage
c/c++中运行外部程序或打开文件(转)
定义基类和派生类
复制构造函数
让StringGrid控件显示下拉菜单
原文地址:https://www.cnblogs.com/smallVampire/p/13998280.html
最新文章
大数据量分页查询方法(转)
Javadoc注释的用法
android:onClick=“xxx”
编译和解释的区别是什么?
连通分量!
HDU 4771 Stealing Harry Potter's Precious
HDU 4770 Lights Against Dudely
取反
对称变换
1738
热门文章
HDU 4738 Caocao's Bridges
POJ 3207 Ikki's Story IV
HDU 3062 Party
HDU 4118 Holiday's Accommodation
最大流模版
jQuery表单事件之blur与focus和change事件
jQuery鼠标事件之focusin事件
jQuery鼠标事件之hover事件
jQuery遍历之each()
jQuery遍历之add()方法
Copyright © 2011-2022 走看看