Is there a way to accomplish something like:
select array(update table set value = '' where condition returning another_value)
This one seems to give a syntaxerror. I imagine I could wrap the inner part inside a function...
Is there a way to accomplish something like:
select array(update table set value = '' where condition returning another_value)
This one seems to give a syntaxerror. I imagine I could wrap the inner part inside a function...
I think this should work:
WITH Result AS (
update table set value = '' where condition returning another_value
)
SELECT array(SELECT * FROM Result)
Seems a little clunky to me, but I couldn't simplify it any further without running into syntax errors...