Y
yuting2003
Unregistered / Unconfirmed
GUEST, unregistred user!
注释中是表中的类型<br>以下是我写的sql语句,<br>大家不要笑我,我不知道怎么弄了,<br>数据库是mysql的.谢谢大家<br><br>adoquery1.Close;<br>adoquery1.SQL.Clear;<br>adoquery1.SQL.Add('update '+juesebm+' set NAME=:name,GOODNESS=:dizhi,GRACE=:GRACE'+<br>',LUCKY=:LUCKY,EXPLOIT=:EXPLOIT,PKADDITION=KADDITION,HONOR=:HONOR,COUNTRY=:COUNTRY'+<br>',SEPTID=:SEPTID,UNIONID=:UNIONID,CONSORT=:CONSORT,MAPID=:MAPID,MAPNAME=:MAPNAME,X=:X'+<br>',Y=:Y,SKILLPOINTS=:SKILLPOINTS,MEN=:MEN,POINTS=OINTS, INT=:INT, DEX=EX,CON=:CON'+<br>',STR=:STR,GOLD=:GOLD,TICKET=:TICKET,SALARY=:SALARY, LEVEL=:LEVEL,ROUND=:ROUND'+<br>',PUNISHTIME=UNISHTIME,FORBIDTALK=:FORBIDTALK where CHARID=:CHARID');<br>adoquery1.Parameters.ParamByName('name').Value:=trim(flatedit3.Text); //varchar(33)<br>adoquery1.Parameters.ParamByName('dizhi').Value:=strtoint(trim(flatedit7.Text)); //int<br>adoquery1.Parameters.ParamByName('GRACE').Value:=strtoint(trim(flatedit8.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('LUCKY').Value:=strtoint(trim(flatedit9.Text)); // smallint(5)<br>adoquery1.Parameters.ParamByName('EXPLOIT').Value:=strtoint(trim(flatedit10.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('PKADDITION').Value:=strtoint(trim(flatedit11.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('HONOR').Value:=strtoint(trim(flatedit12.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('COUNTRY').Value:=strtoint(trim(flatedit31.Text));//int(10)<br>adoquery1.Parameters.ParamByName('SEPTID').Value:=strtoint(trim(flatedit32.Text));// int(10)<br><br>adoquery1.Parameters.ParamByName('UNIONID').Value:=strtoint(trim(flatedit33.Text));//int(10)<br>adoquery1.Parameters.ParamByName('CONSORT').Value:=strtoint(trim(flatedit34.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('MAPID').Value:=strtoint(trim(flatedit13.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('MAPNAME').Value:=trim(flatedit14.Text); //varchar(33)<br>adoquery1.Parameters.ParamByName('X').Value:=strtoint(trim(flatedit15.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('Y').Value:=strtoint(trim(flatedit16.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('SKILLPOINTS').Value:=strtoint(trim(flatedit17.Text)); //smallint<br>adoquery1.Parameters.ParamByName('MEN').Value:=strtoint(trim(flatedit18.Text)); //smallint<br>adoquery1.Parameters.ParamByName('POINTS').Value:=strtoint(trim(flatedit19.Text)); //smallint<br><br>adoquery1.Parameters.ParamByName('INT').Value:=strtoint(trim(flatedit20.Text)); //smallint<br><br>adoquery1.Parameters.ParamByName('DEX').Value:=strtoint(trim(flatedit21.Text)); //smallint<br>adoquery1.Parameters.ParamByName('CON').Value:=strtoint(trim(flatedit22.Text)); //smallint<br>adoquery1.Parameters.ParamByName('STR').Value:=strtoint(trim(flatedit23.Text)); //smallint<br>adoquery1.Parameters.ParamByName('GOLD').Value:=strtoint(trim(flatedit24.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('TICKET').Value:=strtoint(trim(flatedit25.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('SALARY').Value:=strtoint(trim(flatedit26.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('LEVEL').Value:=strtoint(trim(flatedit27.Text));//smallint<br>adoquery1.Parameters.ParamByName('ROUND').Value:=strtoint(trim(flatedit28.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('PUNISHTIME').Value:=strtoint(trim(flatedit29.Text)); //int(10)<br>adoquery1.Parameters.ParamByName('FORBIDTALK').Value:=strtoint(trim(flatedit30.Text)); //bigint<br>adoquery1.Parameters.ParamByName('CHARID').Value:=strtoint(trim(flatedit1.Text)); //int(10)<br>adoquery1.ExecSQL;<br><br>运行时候总错误