錯誤1:rem
create table employee(table
id int(10) not null auto_increment=10000001,im
name varchar(50) not null,tab
age int(3) not null,錯誤
primary key (id)ab
);arc
錯誤2:
create table employee(
id int(10) not null auto_increment(10000001, 1),
name varchar(50) not null,
age int(3) not null,
primary key (id)
);
正確1:
create table employee(
id int(10) not null auto_increment,
name varchar(50) not null,
age int(3) not null,
primary key (id)
)auto_increment=10000001;
正確2:
create table employee(
id int(10) not null auto_increment,
name varchar(50) not null,
age int(3) not null,
primary key (id)
);
alter table employee auto_increment=10000001;