DEV Community

The RETURNING clause in SQL

Alessio Michelini on October 19, 2023

This is a little tip I learned today from a colleague, and it's something so simple and so effective that I still wonder why it never popped in my ...
Collapse
 
mortylen profile image
mortylen

It is a very useful thing if you are querying a database from an external source, for example from a client application, and you want to know what data was actually inserted. Especially if the SQL table generates and modifies some data automatically.

Collapse
 
koas profile image
Koas

Omg! I had never heard of this, thanks!