By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,017 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,017 IT Pros & Developers. It's quick & easy.

Querying "Sequence" in Select statement

P: 26
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
Share this question for a faster answer!
Share on Google+

Post your reply

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