Hi all,
I was looking at the docs here:
CREATE SEQUENCE - SAP HANA SQL and System Views Reference - SAP Library
and I decided to try it ...
CREATE SEQUENCE seq START WITH 11;
CREATE TABLE target (a INT, b INT);
SELECT seq.NEXTVAL FROM DUMMY;
SELECT seq.CURRVAL FROM DUMMY;
INSERT INTO target VALUES ( seq.NEXTVAL, seq.NEXTVAL);
SELECT * FROM target;
but my results are NEXTVAL = 11, CURRVAL = 11 and A, B are 12, 12 ... not 12, 13 as stated in the docs ... Is this a bug?
.r.