参数不足 期待是1,我用的是access数据库,我怀疑是sql语句的错误,请指教 20
这是我用dreamweaver做网页时生成的代码<%DimRecordset1DimRecordset1_numRowsSetRecordset1=Server.Crea...
这是我用dreamweaver做网页时生成的代码
<%Dim Recordset1Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")Recordset1.ActiveConnection = MM_data_bbs_STRINGRecordset1.Source = "SELECT * FROM user WHERE name like '" + Replace(Recordset1__usersname, "'", "''") + "'"Recordset1.CursorType = 0Recordset1.CursorLocation = 2Recordset1.LockType = 1Recordset1.Open()
Recordset1_numRows = 0%>
测试网页出现的提示
错误类型:Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。/outcome.asp, 第 20 行
浏览器类型:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET4.0C)
网页:GET /outcome.asp
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_data_bbs_STRING
Recordset1.Source = "SELECT * FROM user WHERE name like '" + Replace(Recordset1__usersname, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open() /这是第20行/
Recordset1_numRows = 0 展开
<%Dim Recordset1Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")Recordset1.ActiveConnection = MM_data_bbs_STRINGRecordset1.Source = "SELECT * FROM user WHERE name like '" + Replace(Recordset1__usersname, "'", "''") + "'"Recordset1.CursorType = 0Recordset1.CursorLocation = 2Recordset1.LockType = 1Recordset1.Open()
Recordset1_numRows = 0%>
测试网页出现的提示
错误类型:Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。/outcome.asp, 第 20 行
浏览器类型:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET4.0C)
网页:GET /outcome.asp
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_data_bbs_STRING
Recordset1.Source = "SELECT * FROM user WHERE name like '" + Replace(Recordset1__usersname, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open() /这是第20行/
Recordset1_numRows = 0 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询