开发者

Is after Truncate Table constraints exist in SQL?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜