亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

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

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

復(fù)制代碼 代碼如下:

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)生的日志。

相關(guān)文章

最新評(píng)論