标题:高手请帮我查错
取消只看楼主
开心娃娃
Rank: 1
等 级:新手上路
帖 子:93
专家分:0
注 册:2005-9-19
 问题点数:0 回复次数:1 
高手请帮我查错

<% Dim Recordset1 Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_conn_STRING Recordset1.Source = "SELECT bID, name, biaoti, book, replynumb, time, bookdetail.replynumb FROM bookdetail WHERE replynumb=0 AND (book LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%') OR (name LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%') OR (biaoti LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%') " Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open()

Recordset1_numRows = 0 %> 为什么WHERE子句中replynumb=0不起作用,即在测试时,replynumb<>0的也被列出.

2005-10-08 21:44
开心娃娃
Rank: 1
等 级:新手上路
帖 子:93
专家分:0
注 册:2005-9-19
得分:0 
皮蛋粥老哥谢了,你说的不错.按你说的我搞定了.

2005-10-09 19:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-29613-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.116847 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved