467,209 Members | 1,340 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,209 developers. It's quick & easy.

Querying "Sequence" in Select statement

I have created the sequence in the DB2 and i need to query what will be the next possible value for this sequence...

[PHP]Ex. Select NEXT VALUE for schema_name.sequence_name[/PHP]

but above sql statement results in error message...

I need to send next_value of sequence to application so that, application will make use to populate the other related tables.... ( we have a parent-child relationship in the database and PK of the master table needs to be saved in many transaction tables, so i need to query the sequence...)

Any help would be appreciated..

Aug 15 '07 #1
  • viewed: 1139

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Hans-Dieter Franz | last post: by
1 post views Thread by G Fernandes | last post: by
2 posts views Thread by Shea Martin | last post: by
reply views Thread by Shea Martin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.