ouch! You did not cause a bad day � yet
Simon,
If I understood the question correctly, Chethan wants to preclude the use of procedures
The other thing that Chethan wants is to make only one trip to the database.
So � you have two choices:
Create a procedure (or function) where the new sequence is returned and make only one trip to the database.
Or
Make two trips to the database using
sequence_name.currval. I think the later is easier and simpler.
Did I miss anything?
[ May 19, 2003: Message edited by: Leslie Chaim ]