Nitai
unread,Jul 16, 2008, 9:58:26 AM7/16/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to H2 Database
Hi there
First of, thank you for the H2 database. I am mainly using the Oracle
database and found H2 which I am embedding right now into our
application.
I came upon a strange "error" with NEXTVAL. I have setup the sequence
with "create sequence myseq". Then I am selecting the dual table with;
SELECT CATEGORIES_SEQ.nextval AS id FROM dual
This returns me the next value (correct). I then insert that value to
different tables. Problem is that the NEXT time I use the same select
again, it "jumps" one number, meaning I get "1", "3", "5", etc.
Is this a setting or am I doing this wrong?
Kind Regards,
Nitai