Home > Database > Mysql Tutorial > mysql create 的问题 这是什么错误

mysql create 的问题 这是什么错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:32:58
Original
1119 people have browsed it

mysql

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

这个错误怎么改???求大神指导,在线等~~~~

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template