SQLite Forum

Use of RETURNING clause as a subquery
Login
DML statements cannot be used in subqueries. I suppose that should be mentioned
in the documentation.

Can you do this in PostgreSQL?