ubuntu上执行SQL语句:alter table 学生 alter 姓名 char(8) not null;
结果出错: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 'char(8) not null' at line 1
学生表的创建:
create table 学生
(学号 char(8) primary key,
姓名 char(8),
性别 char(2),
学院代码 char(8),
foreign key(学院代码)references 学院(学院代码));