帮忙看一下这个查询sql的语句错误在哪儿?
neibu 2006-09-20 05:46:25 以下是我所执行的aql语句
strsql=datediff("d",shijian,Date()) >="&tian&"
strsql=strsql&" and ( xiaoshoucishu <="&shuang&")"
set rs=server.createobject("adodb.recordset")
if leibie="xielei" then
sql="select * from xiekucun where "&strsql&" order by xiaoshoucishu"
else
sql="select * from qitakucun where "&strsql&" order by xiaoshoucishu"
end if
但是就是这个条件无法时间
strsql=datediff("d",shijian,Date()) >="&tian&"
倒是strsql=strsql&" and ( xiaoshoucishu <="&shuang&")"这个条件可以实现
请问这个是为什么?
哪里错误呢?
而且没有任何错误提示,只是无法正确的查询出我的条件