![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^2: last_insert_id() in sybaseby roboticus (Chancellor) |
on Jul 12, 2014 at 11:34 UTC ( #1093362=note: print w/replies, xml ) | Need Help?? |
If I recall correctly, when I used Sybase (about 12 years ago) I used to do it like this:
Since it's executed in a transaction, there isn't a race condition. However, you *do* need to be able to uniquely identify the row without using it's ID--by using a unique (group of) column(s). ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|