3
I was reading about these commands Truncate table
and Delete from
, where I saw this explanation
Truncate table - This command removes the watermark from the table by cleaning the same for a next use.
Delete from - However this command does not remove the watermark from the table keeping the same size if it is a full delete.
I don’t understand what you mean by that watermark.
My question is, how to evaluate and when/which command to use? And which one already reset fields identity
if you’re going to delete the whole table, use truncate, otherwise delete, I don’t think any will reset the sequence of pk
– Rovann Linhalis
@Igorcarreiro: Watermark, or high water mark, is a concept used in the Oracle Database.
– José Diz
Possible duplicate of What difference between TRUNCATE and DELETE + CHECKIDENT?
– Sorack
The questions are quite similar. I believe they differ because the AP here asks which Zera the columns
identity
.– vinibrsl
@vnbrs is right
– Sorack