![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Getting id of postgres record inserted via DBIby cavac (Prior) |
on Jun 22, 2023 at 06:43 UTC ( [id://11153082]=note: print w/replies, xml ) | Need Help?? |
Modern PostgreSQL supports the RETURNING keyword. Basically, you treat the statement as a one line SELECT afterwards.
See also: https://www.postgresql.org/docs/current/dml-returning.html
PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
In Section
Seekers of Perl Wisdom
|
|