Problem with SELECT LAST_INSERT_ID()
Hello, when I try to get the PKID from the last insert row, I use the the MYSQL Command SELECT LAST_INSERT_ID();. prefixed with the INSERT INTO Command. (for example: INSERT into tableA (COL1,COL2) VALUES ('VAL1','VAL2'); SELECT LAST_INSERT_ID();)
But the return value is one bigger.
My Vb.net Aplication sends the two Command as one string and receives 3 for the second insert row.
Is this rigth?
Subject
Written By
Posted
Problem with SELECT LAST_INSERT_ID()
May 12, 2015 02:47AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.