sname 类型跟not null 连一起了
数据库创建表的时候 ,需要 使用 create table table_name ( 字段信息 ) 进行 创建 ,而不是create table table_name {字段信息 }, 改一下就好了。
create table 表名() 并非 create table 表名 {}