clarissa1996
Technical User
Hi all,
I have the table t1 with the column A.
The column A is defined as:
INT NOT NULL PRIMARY KEY AUTO_INCREMENT.
I need to rename A -> B but the following command report an error:
ALTER TABLE t1 CHANGE A B INT NOT NULL PRIMARY KEY AUTO_INCREMENT
ERROR 1068: Multiple primary key defined
Any help is appreciated.
Clarissa
I have the table t1 with the column A.
The column A is defined as:
INT NOT NULL PRIMARY KEY AUTO_INCREMENT.
I need to rename A -> B but the following command report an error:
ALTER TABLE t1 CHANGE A B INT NOT NULL PRIMARY KEY AUTO_INCREMENT
ERROR 1068: Multiple primary key defined
Any help is appreciated.
Clarissa