SQL Dialects Reference/Write queries/Update returning

Update returning
This variant of  statement allows to return the values from the row(s) affected by the update.