早教吧作业答案频道 -->其他-->
INSERTINTO语句的语法错误ASP.MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)这是代码,到底是错在什么地方呢?请大虾解救!sql="insertintochanpin(xh,gg,tsxhcyl,tsxhfp,jyxhcyl,jyxhfp,tc,wfb,bd,gd,htxhcyl,pb,htxhfp,
题目详情
INSERT INTO 语句的语法错误ASP.Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
这是代码,到底是错在什么地方呢?请大虾解救!
sql="insert into chanpin(xh,gg,tsxhcyl,tsxhfp,jyxhcyl,jyxhfp,tc,wfb,bd,gd,htxhcyl,pb,htxhfp,hbjg,lrl,zxjg,jyxhflag,gdflag) values('"&xh&"','"&gg&"',"&tsxhcyl&","&tsxhfp&","&jyxhcyl&","&jyxhfp&","&tc&","&wfb&","&bd& ","&gd &"," &htxhcyl &"," &pb&","& htxhfp&"," & hbjg & "," & lrl &","&cbjgsum&",'"&jyxhflag&"','"&gdflag&"')"
'Response.Write( sql)
'Response.End()
Set rsst = Server.CreateObject("ADODB.Recordset")
'rsst.ActiveConnection = MM_conn_news_STRING
'rsst.Source = sql
'rsst.CursorType = 0
'rsst.CursorLocation = 2
'rsst.LockType = 1
'rsst.Open()
rsst.Open sql,connt,3
这是代码,到底是错在什么地方呢?请大虾解救!
sql="insert into chanpin(xh,gg,tsxhcyl,tsxhfp,jyxhcyl,jyxhfp,tc,wfb,bd,gd,htxhcyl,pb,htxhfp,hbjg,lrl,zxjg,jyxhflag,gdflag) values('"&xh&"','"&gg&"',"&tsxhcyl&","&tsxhfp&","&jyxhcyl&","&jyxhfp&","&tc&","&wfb&","&bd& ","&gd &"," &htxhcyl &"," &pb&","& htxhfp&"," & hbjg & "," & lrl &","&cbjgsum&",'"&jyxhflag&"','"&gdflag&"')"
'Response.Write( sql)
'Response.End()
Set rsst = Server.CreateObject("ADODB.Recordset")
'rsst.ActiveConnection = MM_conn_news_STRING
'rsst.Source = sql
'rsst.CursorType = 0
'rsst.CursorLocation = 2
'rsst.LockType = 1
'rsst.Open()
rsst.Open sql,connt,3
▼优质解答
答案和解析
一定是你的字符类型不对啊..看看是不是字符型varchar的,如果是的话加上 '' 在values里面,我想应该是这个问题..
看了 INSERTINTO语句的语...的网友还看了以下:
(r-2)^2+16=r^2r=5,请问怎么解的,要过程,最好还有其他例子 2020-04-12 …
怎样用MATLAB求解高次方程%主减速器传动比计算m=input('请输入汽车质量m=');ig= 2020-05-17 …
r结尾的开音节,有人说stagger以r结尾,为开音节,所以不双写r,但是请看:refer为什么就 2020-05-20 …
高中物理题求解,一电路忽略电源内阻,外电路连接一滑动变阻器R1.在R1中间位置并联另一电阻R,求支 2020-06-03 …
Rt=R*EXP(B*(1/T1-1/T2))此公式中怎样求得T1?我知道Rt,B,R及T2的值E 2020-07-23 …
怎样用MATLAB求解高次方程%主减速器传动比计算m=input('请输入汽车质量m=');ig= 2020-08-02 …
一道简单但我不会做的积分题分子根号下a平方减r平方,分母d-r,a与d为常数,对r积分,请高手给思 2020-08-02 …
关于曲线积分的问题请教∫(x^2+y^2+z^2)ds,其中x^2+y^2+z^2=R^2,x+y+ 2020-11-01 …
在判断关于天体方面的线速度,向心加速度,时什么时候用,v=wrG(mm1/r^2)=maG(mm1/ 2020-12-16 …
(2013•铜仁市)在电路中已知两个并联的定值电阻R甲、R乙且R甲<R乙,请你在坐标图上画出R甲和R 2021-01-15 …