MySQL#1064语法错误
MySQL #1064 syntax error
这是我的查询:
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);
您需要用单引号来分隔值。
这是我的查询:
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);
您需要用单引号来分隔值。