SQLServer清空表

时间:2014-05-27 16:01:11   收藏:0   阅读:295
 
 

TRUNCATE TABLE TABLE_NAME
这个不记日志.
delete table table_name
这个记日志

drop table table_name
删除表

TRUNCATE

语法

TRUNCATE TABLE TABLE_NAME

如:
TRUNCATE TABLE TEST
删除TEST表中的所有数据

SQLServer清空表,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!