参数不足 期待是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 展开
2个回答
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询