Mysql出于某种原因出错?

时间:2013-08-24 21:32:46

标签: mysql sql

抱歉最后一个问题。 Puush倒下了! ANYWAY,在这里:

  

[25/08/2013 00:07:50] [DB LIB]异常@MySQL_Connection :: RunQuery(INSERT INTO字符(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)):MySql.Data.MySqlClient.MySqlException(0x80004005):你有一个错误在你的SQL语法中;查看与您的MySQL服务器版本对应的手册,以便在第1行的'int,luk,hp,maxhp,mp,maxmp,meso,hpApUsed,job,skincolor,gender,fame,ha'附近使用正确的语法

为什么我收到错误?谢谢!

1 个答案:

答案 0 :(得分:2)

INTreserved keyword。你将需要将它包装在刻度线中。

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)