msyql 数据库 报错
[Err] 1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
sql 语句创建表,报错语句如下
create table users(
id int not null auto_increment ,
uname varchar(30) not null ,
upwd int not null ,
note varchar(30) not null
)
create table tusers(
id int not null auto_increment ,
uname varchar(30) not null ,
upwd int not null ,
note varchar(30) not null,
primary key(id)
)
加上 声明一个主键 就ok啦。