Hello All,
`NEXTCACHEFIRSTVALUE` gets equal to `START` in the corresponding record of `SYSCAT.SEQUENCES` right after the `ALTER SEQUENCE myseq RESTART WITH xxx` statement before the first subsequent `NEXTVAL FOR myseq` call.
The drawback is, that it's impossible to generate correct `ALTER SEQUENCE myseq RESTART WITH xxx` statement on such a sequence, if `NEXTVAL` hasn't been called after `ALTER SEQUENCE` - there is no way to find this `xxx` value in the system catalog in this case.
Is this "feature" documented somewhere?
------------------------------
Mark Barinstein
------------------------------