gpt4 book ai didi

sql - mysql插入时报错1064

转载 作者:行者123 更新时间:2023-12-01 00:32:06 25 4
gpt4 key购买 nike

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

这是我的代码

INSERT INTO  
(country, ping, order)
VALUES
('China', '1', '1');

最佳答案

您缺少表名。尝试:

INSERT INTO MYTABLENAME (country,ping,order) VALUES ('China','1','1');

关于sql - mysql插入时报错1064,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4308866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com