[英]#1064 - You have an error in your SQL syntax; when creating table
I'm a complete noob with MySQL and I could use as much detail as possible. 我对MySQL完全陌生,可以使用尽可能多的细节。
#1064 - You have an error in your SQL syntax; #1064-您的SQL语法有误; check the manual that corresponds to your MySQL server version for the right syntax to use near ''D5F9F589C9C' at line 1371 检查与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第1371行的“ D5F9F589C9C”附近使用
-- Dumping data for table wcrp_gameserver.accountnotes: ~3,090 rows (approximately)
/*!40000 ALTER TABLE accountnotes
DISABLE KEYS */; / *!40000 ALTER TABLE accountnotes
DISABLE KEYS * /;
INSERT INTO `accountnotes` (`noteid`, `accountid`, `setby`, `seton`, `note`) VALUES
^ That's the query and this is line 1371: ^这是查询,这是第1371行:
(9678, 38742, 30, '2015-06-11 20:36:31', 'Kicked: Don\'t abuse /report'),
Try using the following SQL statement 尝试使用以下SQL语句
ALTER TABLE table_name
ADD column_name datatype
If you wish to add, drop or modify a column. 如果要添加,删除或修改列。
You don't need to use ALTER TABLE if you just want to INSERT a row. 如果您只想插入一行,则无需使用ALTER TABLE。
That said, with the information given, it seems you just need to delete the comment 也就是说,根据提供的信息,您似乎只需要删除评论即可
/*!40000 ALTER TABLE accountnotes DISABLE KEYS */;
And I will make sure columns noteid, accountid, setby, seton, note exist in accountnotes table and values are set according to their datatype. 我将确保在accountnotes表中存在noteid,accountid,setby,seton,note列,并根据其数据类型设置值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.