回 帖 发 新 帖 刷新版面

主题:[讨论]一个关于ENUM很简单的问题

在线等啊,CREATE TABLE test(color ENUM);
test表名,color列名,属性ENUM,为什么出现这种错误?
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 ')' at line 1
我用的系统linux,debian

回复列表 (共1个回复)

沙发


CREATE TABLE test(color ENUM('Yes','No','Others'));

我来回复

您尚未登录,请登录后再回复。点此登录或注册