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.


原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/database/234651.html

(0)
上一篇 2022年1月23日 21:43
下一篇 2022年1月23日 21:43

相关推荐

发表回复

登录后才能评论