nextval
A sequence is a counter object. nextval('name') returns the next number and never gives the same one twice, even across concurrent sessions.
task
Create a sequence sq and call nextval on it three times.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A sequence is a counter object. nextval('name') returns the next number and never gives the same one twice, even across concurrent sessions.
Create a sequence sq and call nextval on it three times.