代码如下:
TruncATE TABLE (Transact-sql)
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.
两者的区别在于Truncate快,而且释放日志所占资源,不记录由于删除行的影响所产生的日志。