日期:2014-05-16  浏览次数:20842 次

求高手解答!MYSQL问题! 在线等答案
我是菜菜,求高手帮忙解决一下:
问题提示:Microsoft OLE DB Provider for ODBC Drivers '80004005' 
[MySQL][ODBC 3.51 Driver][mysqld-4.1.13yes-log]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 'INT=0 AND DEX=0 AND STR=0 AND CON=333 AND RELIVEWEAKTIME=0 AND GRACE=0 AND EXPLO' at line 1 
\web\adminthirteen\user.asp, line 694

数据库是由ACCESS转换成MYSQL的.在更新其它MYSQL数据表都没有问题.唯独用同样的方法来更新这张表的时候出现如上错误

数据表结构:ACCID(INT自增型) NAME(varchar) POINTS(smallint) INT(INT) DEX(INT) CON(INT) STR(INT)如上报错字段都为INT型,长度为10非NULL?,无符号.其中还有部分表,这里就不帖出来了.

报错源码:表单内容我就不帖上来了,
引用
<%
set rs=nothing 
end sub
sub save()
'保存资料
ACCID=trim(request("ACCID"))
if ACCID="" then
response.Write "<Script>alert('非法链接,您的IP已记录!');javascript:history.go(-1)</Script>"
Response.end
end if
sql = "select * from USER where ACCID='"&ACCID&"'"
set rs=Server.Createobject("ADODB.RecordSet")
rs.Open sql,conn2,1,3
if rs.bof and rs.eof then
response.Write "<Script>alert('操作失败!');javascript:history.go(-1)</Script>"
response.end
else
rs("COUNTRY")=(trim(request("COUNTRY")))
rs("TYPE")=(trim(request("TYPE")))
rs("LEVEL")=(trim(request("LEVEL")))
rs("MEN")=(trim(request("MEN")))
rs("DEX")=(trim(request("DEX")))
rs("POINTS") = trim(request("POINTS"))
rs("INT")=trim(request("INT"))
rs("STR")=trim(request("STR"))
rs("CON")=trim(request("CON"))
 这颜色部分是的报错语句,我把这几条都删除,同样还报错.
rs("yzm")=now()
rs.update  这里是报错行.
rs.close
set rs = nothing
response.write "<script language='javascript'>"
response.write "alert('操作成功,资料已更新!');"
response.write "location.href='user.asp';"
response.write "</script>"
response.end
end if
end sub

sub userdel()
delnum=request("num")
if delnum="" or isnull(delnum) then
response.write "<script language='javascript'>"
response.write "alert('出错了,您什么也没有选择!');"
response.write "location.href='user.asp';"
response.write "</script>"
response.end
end if