创建表 数据库mysql
错误码: 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 '{
id int primary key auto_increment,
name varchar(18),
description varchar(100)
' at line 1
代码:CREATE TABLE tb_dept{
id INT PRIMARY KEY AUTO_INCREMENT,
NAME VARCHAR(18),
description VARCHAR(100)
};
------解决方案--------------------好像不是 { },
是 ( ) 吧;
------解决方案--------------------改成 ( ) .语法错误。