t-sql清空表数据的两种方式示例(truncate and delete)

复制代码 代码如下:

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.


上一篇 2022年3月21日
下一篇 2022年3月21日