欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

t-sql清空表數(shù)據(jù)的兩種方式示例(truncate and delete)

 更新時間:2013年11月28日 15:06:02   作者:  
這篇文章主要介紹了t-sql使用truncate and delete清空表數(shù)據(jù)的兩種方法,大家參考使用

復制代碼 代碼如下:

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.


兩者的區(qū)別在于Truncate快,而且釋放日志所占資源,不記錄由于刪除行的影響所產(chǎn)生的日志。

相關文章

最新評論