好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

复制代码 代码如下:


TRUNCATE TABLE (Trans js act-SQL)

Remo android ves all rows from a table without logging the individual row deletions.

TRUNCATE TABLE is similar to the DELETE statement with no www.cppcns.com WHERE clause;

however, TRUNCATE TABLE is faster and uses fewer system and transaction log resources.


两者的区别在于Trunca php te快,而且释放日 python 志所占资源,不记录由于删除行的影响所产生的日志。

查看更多关于t-sql清空表数据的两种方式示例(truncate and delete)的详细内容...

  阅读:39次