Release Notes
Product Announcements
AUTO_INCREMENT column. Therefore, when you create a table after MyISAM has been converted to InnoDB, an error will be reported as follows: ERROR 1075 (42000):Incorrect table definition;there can be only one auto column and it must be defined as a key.AUTO_INCREMENT column in InnoDB, we recommend that you add an index for the AUTO_INCREMENT column.create table t_complexkey(id int(8) AUTO_INCREMENT,name varchar(19),value varchar(10),primary key (name,id)) ENGINE=MyISAM DEFAULT CHARSET=utf8;

create table t_complexkey(id int(8) AUTO_INCREMENT,name varchar(19),value varchar(10),primary key (name,id),key key_id (id) ## Add an index for the AUTO_INCREMENT column) ENGINE=MyISAM DEFAULT CHARSET=utf8;

show create table t_complexkey;

Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback