You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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,
I am using H2 with DB2 support. I have created a SEQUENCE named
ID_GEN .
"NEXT VALUE FOR ID_GEN" is working fine to get the next sequence
value but after that when I try to get Previous value of ID_GEN using
"SELECT PREVIOUS VALUE FOR ID_GEN from USR fetch first 1 rows only"
it is throwing error by saying "Column PREVIOUS not found".
please help. above code works fine in DB2
Thanks
bob mcgee
unread,
Jul 28, 2009, 12:12:19 PM7/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Thanks for Reply Bob.
But I don't want to modify my existing DB2 DAO code as CURRVAL is not
supported by DB2. So I rewrite the Query before execution and replaced
the instances of PREVVAL with CURRVAL syntax :-)
Thomas Mueller
unread,
Aug 4, 2009, 2:43:17 PM8/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to h2-da...@googlegroups.com
Hi,
I didn't know about PREVIOUS VALUE FOR <sequence>. I will add a
feature request, but not implement it currently, sorry.