我第一次遇到这样的错误,我意识到问题类似于这个问题> 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 timestamp(14),
PRIMARY KEY (id)
) ENGINE=MyISAM";
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
870 次 |
| 最近记录: |