mysql> CREATE TABLE department(
-> d_id INT(4) NOT NULL UNIQUE PRIMARY KEY,
-> d_name VARCHAR(20) NOT NULL UNIQUE,
-> function VARCHAR(50),
-> address VARCHAR(50)
-> );
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 'function VARCHAR(50),
address VARCHAR(50)
)' at line 4
为什么会出现这个问题
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-