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.
In reply to Re^7: SELECT LAST_INSERT_ID does not work
by chacham
in thread SELECT LAST_INSERT_ID does not work
by Vagabundo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |