MySQL Forums
Forum List  »  Newbie

INSERT - how can i use the current auto increment value and put it into a seperate column
Posted by: andi gibson
Date: May 09, 2005 03:24AM

$sql="INSERT INTO `table` ( `id` ,`cat` ,`order`)VALUES ('', 'mycategory', '***')";

*** i want the value that mysql will assign to `id` in here

any ideas ?

ive been stuck with this for a while now,

thanks x

Options: ReplyQuote




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.