第一次遇到这样的错误,我意识到问题类似于这个问题>错误#1064 in mysql所以我将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 timestamp(14),
PRIMARY KEY (id)
) ENGINE=MyISAM";