All,
Is there a way I can set the sequence of a table equal to highest row
ID?
For example something like:
select setval('mytable_myrowid_seq',select max(myrowid) from mytable);
I read the documentation but could not find anything relevant.
Thanks in advance,
Egbert.
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
- Re: [SQL] update table sequence Egbert Ellenkamp
- Re: [SQL] update table sequence Ross J. Reedstrom
- Re: [SQL] update table sequence Tom Lane
