如下:
- mysql> create table tbx(
- -> id int unsigned not null auto_increment,
- -> score int not null
- -> );
- ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key
- mysql>
什么意思呢? 自增列只能有1列, 且这列必须为key, 如下便OK:
- mysql> create table tbx(
- -> id int unsigned not null auto_increment primary key,
- -> score int not null
- -> );
- Query OK, 0 rows affected (0.01 sec)
-
- mysql>
good

![[端游] GGE2互通西游【精修梦江南】最新整理Win系端+安卓苹果PC三端互通+全套源码+搭建教程](https://cdn.jxasp.com:9143/image/20260408/53F3B6B3FF5B241EA5AFA7D519600A03.png)

















