mySQL版本为5.5
' at line 1
mysql> create table(
部门编号 char(3) not null primary key
部门名称 char(20) not null
备注 text);
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 '(
部门编号 char(3) not null primary key
部门名称 char(20) not null
' at line 1
建表要有表名,上图是在5.5版本的mysql中进行的测试,加上表名后就没有报错了
列名改成英文
少了个逗号