设为首页 加入收藏

TOP

SQL-TRUNCATE、DELETE、DROP的区别
2014-11-23 17:45:16 来源: 作者: 【 】 浏览:65
Tags:SQL-TRUNCATE DELETE DROP 区别

TRUNCATE: Removes all rows from a table without logging the individual row deletions. TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause; however, TRUNCATE TABLE is faster and uses fewer system and transaction log resources.

DELETE: Removes one or more rows from a table or view in SQL Server.

DROP: Removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables.

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇SQL数据库基础知识总结(三)---.. 下一篇SQL-Index

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: