Skulle väl tro att du ha löst detta vid det här laget, men vad jag förstår från
www.myswlfreaks.com lista över statements borde denna kod fungera alldeles utmärkt:
Kod:
SELECT LAST_INSERT_ID();
Citat:
You can generate sequences without calling LAST_INSERT_ID(), but the utility of using the function this way is that the ID value is maintained in the server as the last automatically generated value (multi-user safe).
|
Samma diskussion fast på ett annat forum:
http://www.experts-exchange.com/Data..._20709537.html
EDIT: Länk...