Has anyone idea on this? On Wednesday, November 1, 2017 at 12:49:30 AM UTC+5:30, Juturu Amaranathareddy wrote: > > Hi, > > I have the following query in IBM DB2 which gets the IDs in batch. > *Query:* > *WITH BATCH(KEYVAL) AS (SELECT 1 FROM <TABLE_NAME> UNION ALL SELECT KEYVAL > + 1 FROM BATCH WHERE KEYVAL < 5) SELECT NEXT VALUE FOR <SEQ_NAME> FROM > BATCH;* > > What is the equivalent query in H2 to achieve the same behavior? > > Thanks, > Amar. >
-- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
