mysql create 的问题 这是什么错误
CREATE TABLE student
(sno
INT (20) NO NULL , sname
VARCHAR (60) NO NULL,sex
VARCHAR (2) NO NULL ,dept
VARCHAR (18) NO NULL ,birth
DATE() NO NULL,age
INT (10) NO NULL CHECK (age > '0' AND age CHECK (sex = 男
OR sex = 女
),
CHECK (dept = '信息系' OR dept = '计算机科学系' OR dept = '数学系' OR dept = '管理系' OR dept = '中文系' OR dept = '外语系' OR dept = '法学系'),
UNIQUE (sno)
);
错误:::
Query : create table student
( sno
int (20) no null , sname
varchar (60) no null, sex
varchar (2) no null , dept
varcha...
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no null , sname
varchar (60) no null,sex
varchar (2) no null ,dept
' at line 2
Execution Time : 00:00:00:000
Transfer Time : 00:00:00:000
Total Time : 00:00:00:000
这个错误怎么改???求大神指导,在线等~~~~
推荐阅读
-
解决MYSQL连接端口被占引入文件路径错误的问题
-
解决MYSQL出现Can''t create/write to file ''#sql_5c0_0.MYD''的问题
-
解决修改mysql的data_dir所引发的错误问题
-
MySQL创建用户错误ERROR 1396 (HY000): Operation CREATE USER failed for 'XXXX'@'XXXX'问题解
-
mysql一对多关联查询分页错误问题的解决方法
-
MySQL错误日志显示(Got an error reading communication packets)的问题
-
php的慢速日志引起的Mysql错误问题分析
-
解决MYSQL出现Can''t create/write to file ''#sql_5c0_0.MYD''的问题
-
安装mysql-8.0.19-winx64遇到的问题:Can't create directory 'xxxx\Database\'
-
解决MYSQL出现Can''t create/write to file ''#sql_5c0_0.MYD''的问题