F
fireboy
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码如下:
<%@ language="vbscript" %>
<%
set zscn=server.createobject("ADODB.Connection")
zscn.open "myacc","",""
set rs=server.createobject("ADODB.Recordset")
rs=zscn.Execute("select password from schools where code ="
&request.form("code"))
......
运行时,报错:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression 'code ='.
这到底是怎莫回事?另外,带参数的insert语句应该怎样写,为什莫一直报错,就是加不进数据去?
我用的是access数据库.
<%@ language="vbscript" %>
<%
set zscn=server.createobject("ADODB.Connection")
zscn.open "myacc","",""
set rs=server.createobject("ADODB.Recordset")
rs=zscn.Execute("select password from schools where code ="
&request.form("code"))
......
运行时,报错:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression 'code ='.
这到底是怎莫回事?另外,带参数的insert语句应该怎样写,为什莫一直报错,就是加不进数据去?
我用的是access数据库.