I am using executeUpdate(query) to insert a row into a Firebird database table and while this works all it tells me is whether it has worked or not.
What I need to know is WHAT row was inserted i.e. when the record is inserted a unique primary key and I need to know this ID so that it can be referred to in later statements.
Is this possible to do and if so how?
Thanks
Neil
You can use the
RETURNINGclause of theINSERTstatement, introduced in Firebird 2.0: