Hello, i've got an `id` column which auto_increments, but I also would like another column initially set to the same number as `id`.
Is this a sensible way of doing this on mySQL 4.0.26:
"INSERT INTO `bla` ( `id` , `id2`, `text`) VALUES ('', '', 'Bob'); UPDATE `bla` SET `id2`=LAST_INSERT_ID( ) WHERE id=LAST_INSERT_ID( );"
And send it as one query from php?
Thank you for any help you can give me,
James
Is this a sensible way of doing this on mySQL 4.0.26:
"INSERT INTO `bla` ( `id` , `id2`, `text`) VALUES ('', '', 'Bob'); UPDATE `bla` SET `id2`=LAST_INSERT_ID( ) WHERE id=LAST_INSERT_ID( );"
And send it as one query from php?
Thank you for any help you can give me,
James