Hi All
I would like to know if it is possible to set the Start With of a Sequence as a max value of an Integer field in a table?
I tried to do this and i could not get it:
CREATE SEQUENCE MySeq
AS INT
START WITH (SELECT MAX(ID) FROM TABLE1)
INCREMENT BY 1
NO MAXVALUE
NO CYCLE
CACHE 200
ORDER;
Thanks in advance
I would like to know if it is possible to set the Start With of a Sequence as a max value of an Integer field in a table?
I tried to do this and i could not get it:
CREATE SEQUENCE MySeq
AS INT
START WITH (SELECT MAX(ID) FROM TABLE1)
INCREMENT BY 1
NO MAXVALUE
NO CYCLE
CACHE 200
ORDER;
Thanks in advance