ReturningStatement
Parameters
table
Table to perform the main statement on and return results from.
returningExpressions
Columns or expressions to include in the returned result set.
mainStatement
The statement to append the RETURNING clause to. This may be an insert, update, or delete statement.