Kaan, Wednesday, June 12, 2002, 2:10:08 PM, you wrote: >> I have set up a table with 3 fields. But I have forgetten to add a primary >> key (I'm not sure if its a primary key I want, I just want a >> auto-Increamentig field at the begging of the table. >> can anyone tell me how I do this.
Take a look at ALTER TABLE: http://www.mysql.com/doc/A/L/ALTER_TABLE.html for example: ALTER TABLE table_name ADD COLUMN id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY FIRST; -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php