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快,而且释放日志所占资源,不记录由于删除行的影响所产生的日志。
到此这篇关于t-sql清空表数据的两种方式示例(truncateanddelete)就介绍到这了。我希望,离别的离别的离别之后,我们总能再相聚。更多相关t-sql清空表数据的两种方式示例(truncateanddelete)内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!