mysql 语法问题?
usehengli;createtablesystem1(idintnotnullauto_increment,movetextvarchar(200),foot_com...
use hengli;
create table system1(
id int not null auto_increment,
movetext varchar(200),
foot_company varchar(100),
foot_add varchar(100),
foot_link varchar(20),
foot_tel varchar(20),
foot_fax varchar(40),
foot_email varchar(30),
PRIMARY KEY (id)
)
这段SQL语句有什么问题啊?
怎么提示'auto_increment' 附近有语法错误。 展开
create table system1(
id int not null auto_increment,
movetext varchar(200),
foot_company varchar(100),
foot_add varchar(100),
foot_link varchar(20),
foot_tel varchar(20),
foot_fax varchar(40),
foot_email varchar(30),
PRIMARY KEY (id)
)
这段SQL语句有什么问题啊?
怎么提示'auto_increment' 附近有语法错误。 展开
1个回答
展开全部
use hengli;
create table system1(
id int unsigned auto_increment not null ,
movetext varchar(200),
foot_company varchar(100),
foot_add varchar(100),
foot_link varchar(20),
foot_tel varchar(20),
foot_fax varchar(40),
foot_email varchar(30),
PRIMARY KEY (id)
)
create table system1(
id int unsigned auto_increment not null ,
movetext varchar(200),
foot_company varchar(100),
foot_add varchar(100),
foot_link varchar(20),
foot_tel varchar(20),
foot_fax varchar(40),
foot_email varchar(30),
PRIMARY KEY (id)
)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询