Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

请教一个ASP的问题,十万火急!

0 views
Skip to first unread message

prince

unread,
Mar 10, 2009, 1:21:30 AM3/10/09
to
各位大侠:

我现在在做一个ASP根据条件查询的功能,数据库用的是ACCESS。我是根据不同的条件运行不同的SQL的,SQL的查询需要的条件我都得到了,但是其中一个SQL条件死活查不出数据出来,我在access里面用sql是可以查出来的,我的sql是这样写的,我response.write
rs.recordcount时为零,其它的SQL都可以有数据出来:
/***** SQL说明,我是想取出所有标题中包含 党务 这两个自的数据 *************/

strSQL = “select * from News_InfoTable where News_Title like '*党务*'
order by News_Time DESC ”
if rs.state=1 then rs.close
rs.open strSQL,cn,1,1

0 new messages