早上写了个语句 id 自增但不是主键一直报错 语句:create table student(id INT AUTO_INCREMENT, name VARCHAR(200) NOT NULL) ENGINE=INNODB CHARSET=utf8; 报错是:1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
mysql 版本是 8.0.20-0ubuntu0.20.04.1
网上查询有的说可以 有的不可以,有点迷
