Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^7: SELECT LAST_INSERT_ID does not work

by chacham (Prior)
on Jul 02, 2017 at 04:09 UTC ( [id://1194026]=note: print w/replies, xml ) Need Help??

in reply to Re^6: SELECT LAST_INSERT_ID does not work
in thread SELECT LAST_INSERT_ID does not work

I think Oracle's version is "correct" because it completely separates what is returned into variables. Those variables are defined by the caling environment like any variables are. I do not see that as kludgy at all. Perhaps it is "pure sql" because it requires the use of a caller.

On the other hand, i have never used PostreSQL, i just consider it as being similar to Oracle in (most) practice.

  • Comment on Re^7: SELECT LAST_INSERT_ID does not work

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194026]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-06-18 08:23 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.