开发者

Is after Truncate Table constraints exist in SQL?

开发者 https://www.devze.com 2023-01-26 05:46 出处:网络
When we Truncate Table in SQL then all the all records from but table exist. I want to kno开发者_如何学JAVAw constraints,indexs remain exist or not ?Truncate only removes the records in the table.

When we Truncate Table in SQL then all the all records from but table exist. I want to kno开发者_如何学JAVAw constraints,indexs remain exist or not ?


Truncate only removes the records in the table.

From MSDN (TRUNCATE TABLE):

TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause;


constraints,indexes remain. For more information check this


Your constraints and indexes will remain. Truncate also resets any auto-incremented IDs to zero.

0

精彩评论

暂无评论...
验证码 换一张
取 消