MySQL Forums
Forum List  »  Newbie

Re: Adding an auto increment collumn to a table afterwards.
Posted by: Umesh Shastry
Date: June 27, 2005 06:23AM

Hi!!

Backup your table/db before running this command..



ALTER TABLE listitem CHANGE `mailrecordid` `mailrecordid` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT PRIMARY KEY

Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221

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.