Gaps
Sequence values are not rolled back with the transaction, so identity columns can have gaps. Never use them as a gapless counter.
task
idt has an identity id. Insert and roll back, then insert again returning the id: it skips a number.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Sequence values are not rolled back with the transaction, so identity columns can have gaps. Never use them as a gapless counter.
idt has an identity id. Insert and roll back, then insert again returning the id: it skips a number.