MySQL: #1075 - Incorrect table definition; autoincrement vs another key?

前端 未结 6 874
旧时难觅i
旧时难觅i 2020-11-29 03:13

Here is a table in MySQL 5.3.X+ db:

CREATE TABLE members` (
  `id` int(11)  UNSIGNED NOT NULL AUTO_INCREMENT,
  `memberid` VARCHAR( 30 ) NOT NULL ,
  `Time`          


        
6条回答
  •  Happy的楠姐
    2020-11-29 04:05

    For the above issue, first of all if suppose tables contains more than 1 primary key then first remove all those primary keys and add first AUTO INCREMENT field as primary key then add another required primary keys which is removed earlier. Set AUTO INCREMENT option for required field from the option area.

提交回复
热议问题