这是我的错误(如果您需要更多信息请问) - 错误SQL查询:
CREATE TABLE dave_bannedwords(
id INT( 11 ) NOT NULL AUTO_INCREMENT ,
word VARCHAR( 60 ) NOT NULL DEFAULT '',
PRIMARY KEY ( id ) ,
KEY id( id )
) TYPE = MYISAM ;
Run Code Online (Sandbox Code Playgroud)
MySQL说:
1064 - 您的SQL语法出错; 检查与MySQL服务器版本对应的手册,以便在第6行的"TYPE = MyISAM"附近使用正确的语法
我第一次遇到这样的错误,我意识到问题类似于这个问题> mysql中的错误#1064所以我把TYPE=MyISAM我的代码更改为ENGINE=MyISAM.
但即使在改变之后,我也遇到了类似的错误.它说,
mySQL error: 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 '(14),
PRIMARY KEY (id)
) ENGINE=M' at line 7.
我认为改为ENGINE=MyISAM修复错误,但事实并非如此.我该怎么办?
这是我的代码:
$queries[] = "CREATE TABLE IF NOT EXISTS {$prefix}conversationlog (
id int(11) NOT NULL auto_increment,
input text default '',
response text default '',
thatresponse text default '',
uid varchar(255) default NULL,
enteredtime …Run Code Online (Sandbox Code Playgroud)