3
I have the following case: I need to change the value of some sequences according to the max(id) of the table, I am trying to do something like:
ALTER SEQUENCE CFOP_SEQ INCREMENT BY (SELECT MAX(ID)+1 FROM CFOP);
But it returns me the message "Invalid number". Does anyone know how I can solve this problem ?
Perfect, thanks. A question like I do to execute 2 more commands in sequence ?
– Roknauta
are alters also ?
– Aron Linhares
Alter and a select.
– Roknauta
Yeah, actually in a PL you get pretty much everything.
– Aron Linhares
You can edit the answer by giving an example?
– Roknauta