I have an update statement with returning statement.
What I want is to put the result into a variable or temp table.
update my_table
set something = 'x'
where id ...
returning *;
I tried to that using the execute statement and e.g. returning row_to_json(my_table.*) but the variable, off cause, only contains the first row returned from the update.