gpt4 book ai didi

MySQL #1064 语法错误

转载 作者:行者123 更新时间:2023-11-29 07:12:16 24 4
gpt4 key购买 nike

这是我的查询:

INSERT INTO exp_pdata ( steam, exp, curlevel, nextlevel, levelnum, corbarraxp ) VALUES(STEAM:O_O_O, 0, 0, 500, 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 ':O_O_O, 0, 0, 500, 1, 1)' at line 1 

我尝试搜索此内容,但没有找到导致此错误的原因,
感谢阅读

最佳答案

大概,您希望该值作为字符串:

INSERT INTO exp_pdata ( steam, exp, curlevel, nextlevel, levelnum, corbarraxp )
VALUES('STEAM:O_O_O', 0, 0, 500, 1, 1);

您需要包含单引号来分隔该值。

关于MySQL #1064 语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39261414/

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