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 'TYPE=MyISAM' at line 6
旧型的 TYPE 选项类似与ENGINE御马,TYPE已经在mysl 4.0不建议使用并且在mysql5.5里面完全移除了。
所以上面执行的功能应该用以下的代码:
CREATE TABLE dave_bannedwords(
id INT(11) NOT NULL AUTO_INCREMENT,
word VARCHAR(60) NOT NULL DEFAULT '',
PRIMARY KEY (id),
KEY id(id) -- this is superfluous in the presence of your PK, ergo unnecessary
) ENGINE = MyISAM ;
本文由免费oa系统78oa原创,转载请注明出处。