#1064 - 您的 SQL 语法有错误;创建表时


#1064 - You have an error in your SQL syntax; when creating table

我是一个完全的MySQL菜鸟,我可以尽可能多地使用细节。

#1064 - 您的 SQL 语法有误;请查看与您的 MySQL 服务器版本对应的手册,了解在第 1371 行的"D5F9F589C9C"附近使用的正确语法


-- Dumping data for table wcrp_gameserver.accountnotes: ~3,090 rows (approximately)

/*!40000 更改表accountnotes禁用键 */;

INSERT INTO `accountnotes` (`noteid`, `accountid`, `setby`, `seton`, `note`) VALUES

^ 这是查询,这是第 1371 行:

(9678, 38742, 30, '2015-06-11 20:36:31', 'Kicked: Don''t abuse /report'),

尝试使用以下 SQL 语句

ALTER TABLE table_name
ADD column_name datatype

如果要添加、删除或修改列。

如果您只想插入一行,则不需要使用 ALTER TABLE。

也就是说,根据给出的信息,您似乎只需要删除评论

/*!40000 ALTER TABLE accountnotes DISABLE KEYS */; 

我将确保列 noteid、accountid、setby、seton、note 存在于 accountnotes 表中,并根据其数据类型设置值。