插入时mysql错误1064
1064 - 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,了解在第 1 行“(country,ping,order) VALUES (China,1,1)”附近使用的正确语法
这是我的代码
INSERT INTO
(country, ping, order)
VALUES
('China', '1', '1');
1064 - 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 '(country,ping,order) VALUES (China,1,1)' at line 1
this is my code
INSERT INTO
(country, ping, order)
VALUES
('China', '1', '1');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您缺少表名称。尝试:
You're missing the Table Name. Try:
ping 和 order 是文本字段还是数字字段?如果数字从 1 中删除勾号
也可以是保留字尝试:
are ping and order text fields or numeric? if numeric remove the ticks from the 1's
could also be reserved word try:
您的插入语句缺少表名称:
Your insert statement is missing the table name:
您缺少表名。还要确保这些引号是必要的
you are missing table name. also make sure that those quotes are necessary