jyoti
01-19-2006, 02:48 AM
I am making use of a oracle sequence(seq_id).The values from the sequence serve as primary key for another table(names).In a servlet I am inserting values in the names table using a preparedstatement instance(ps).To set the value for the ID column of names table I use ps.setString(1,seq_id.nextval).Now I want to get the inserted ID value from names(keeping in mind that there is no other primary key in the names table) so that I can pass this value to the next servlet.
Plz tell me if there is a way to retrieve the inserted ID value in this case.Is there any method like ps.getParameter or something to retrieve the values provided to ps?
Plz tell me if there is a way to retrieve the inserted ID value in this case.Is there any method like ps.getParameter or something to retrieve the values provided to ps?