Closed huawan2018 closed 6 years ago
For anyone wondering, I had the same question: If you are using Postgres you can add a RETURNING <field> statement at the end of your INSERT. Then you can query back the DB with the returned field (e.g. id)
RETURNING <field>
INSERT
For anyone wondering, I had the same question: If you are using Postgres you can add a
RETURNING <field>
statement at the end of yourINSERT
. Then you can query back the DB with the returned field (e.g. id)