Hi, I have a problem, My problem is know the value of the field ID (my field ID to create with one sequence of Oracle) of the record reciently inserted in the table, for example: insert one record then i want to know the value of ID quickly beacuse i need the value for manage in other service.
Know the value of the field ID of my record reciently inserted in my table of Oracle.
Since SQL insert statements do not return any values other than a status code, you will need to either:
write a stored procedure to perform the insert and return the unique ID generated from the sequence. Call the stored proc from a adapter service (stored procedure or stored procedure with signature template)
follow your insert with a query to find the newly inserted row using some other value or pseudo key and then get the ID from that row
I tried to do what you said, but system does not like the â;â I used to separate the two sql statements, I wonder what separator could be used to multiple sql statements.