The RETURNING
clause allows you to retrieve values of columns (and expressions based on columns) that were modified by an insert, delete or update. Without RETURNING
, you would have to run a SELECT
statement after the DML statement is completed, in order to obtain the values of the changed columns. So, RETURNING
helps avoid another roundtrip to the database, another context switch in a PL/SQL block.
The RETURNING
clause can return multiple rows of data, in which case you will use the RETURNING
BULK COLLECT INTO form.
from DZone.com Feed http://bit.ly/2VC5O7Q
No comments:
Post a Comment