-2

对不起最后一个问题。普什倒下了!无论如何,这里:

[25/08/2013 00:07:50][DB LIB] 出现异常@ MySQL_Connection::RunQuery(INSERT INTO characters (accountid, name, world, level, exp, str, dex, int, luk, hp, maxhp, mp, maxmp, meso, hpApUsed, 工作, 肤色, 性别, 名望, 头发, 脸, faceMarking, ap, 地图, spawnpoint) VALUES (1,xenn,0,1,0,4,4,4,4,50, 50,50,50,0,0,3002,1,0,0,36473,20185,1012363,0,0,0)) :MySql.Data.MySqlClient.MySqlException (0x80004005):您的 SQL 中有错误句法; 检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的“int、luk、hp、maxhp、mp、maxmp、meso、hpApUsed、job、skincolor、gender、成名、ha”附近使用正确的语法

为什么我会收到错误消息?谢谢!

4

1 回答 1

2

INT保留关键字。您需要将其包裹在刻度中。

INSERT INTO characters (accountid, name, world, level, exp, str, dex, `int`, luk, hp, maxhp, mp, maxmp, meso, hpApUsed, job, skincolor, gender, fame, hair, face, faceMarking, ap, map, spawnpoint) 
VALUES (1,xenn,0,1,0,4,4,4,4,50,50,50,50,0,0,3002,1,0,0,36473,20185,1012363,0,0,0)
于 2013-08-24T21:34:06.687 回答