create table class(
id int auto_increment,
cname varchar(20) not null unique,
cstunum int(3) not null,
cposition varchar(10) not null
cstates char not null default '0',
primary key(id)
);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual tha
corresponds to your MySQL server version for the right syntax to use near 'cst
es char not null default '0',
primary key(id)
)' at line 6
是什么地方的错误
id int auto_increment,
cname varchar(20) not null unique,
cstunum int(3) not null,
cposition varchar(10) not null
cstates char not null default '0',
primary key(id)
);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual tha
corresponds to your MySQL server version for the right syntax to use near 'cst
es char not null default '0',
primary key(id)
)' at line 6
是什么地方的错误
解决方案 »
- mysql switch case语句探讨
- 请问INSERT VALUES(),(),() 和分开写的INSERT VALUES();哪种效率更高?
- 如何检查某列是否为空啊?
- 导入excel表进入mysql数据库,一段时间后数据不见了!
- mysql update 语句如何获得当前行数据?
- Lock wait timeout exceeded; try restarting transaction应如何解决
- 如何在RH Linux9用源码安装MySQL4 ?
- MySql中有没有存储过程,触发器,视图这些东东啊,在线等候
- asp中怎么读取mysql?100分。
- 安装mysql的问题
- 求MYSQL 负载优化方案。
- trigger问题,检测一个值是否存在另个有表中
id int auto_increment,
cname varchar(20) not null unique,
cstunum int(3) not null,
cposition varchar(10) not null, -- ACMAIN , 这少了个逗号!
cstates char not null default '0',
primary key(id)
);
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html