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..
cheers
Venu
|