MySQL Forums
Forum List  »  Newbie

get latest row id after insert
Posted by: cjgomez65
Date: April 21, 2005 11:08PM

In M$ SQL, there is a SQL command that will return the value of a record just inserted into a table. I think it's select @@identity (or something like that). Is there a similar function in MySQL?

INSERT INTO tblBlah (A,B,C)
Values (#A#,#B#,#B#)
select @@identity as BlahID

Thanks,

Chris

Options: ReplyQuote


Subject
Written By
Posted
get latest row id after insert
April 21, 2005 11:08PM


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.