mysql> create table student(
    -> sno char(8) not null primary key,
    -> sname varchar(10) not null,
    -> sex char(2) not null check(sex in('男','女')),
    -> age int not null check(age>0),
    -> dept varchar(20) not null,
    -> constraint s-name unique(sname)
    -> );
ERROR 1064 (42000): 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 ','女
')),
age int not null check(age>0),
dept varchar(20) not null,
constraint s' at line 4
请牛人指点,指点。
谢谢。