4 Dec
2007
4 Dec
'07
9:21 a.m.
Hello,
How do I retrieve the primary key id value after inserting something new into the database ?
Hey Marcus, I had a similar question using python a few days back. The subject was "python cursor missing lastrowid attribute?" That might help.
The basic answer is that this is not supported (due to concurrency issues). The workaround is to pregenerate PKs using sequences.
Ok, I will have a look at that thread. Thanks! /Marcus