日期:2014-05-17  浏览次数:20844 次

看看这句查询语句哪里出错了?
查询语句:数据库用的是SQL

"SELECT   *   from   sdata   where   DateDiff( 'd ', ' "&   now()   & " ',logoTime) <=1   and   logoOut   =   1 "

运行asp浏览的时候总是出错。

该怎么样写呢?谢谢!



------解决方案--------------------
DateDiff(d, ' "& now() & " ',logoTime)
------解决方案--------------------
你用的是什么数据库?
如果 access 应该是
datediff( 'd ',date(),logotime)
如果是sql
为 DateDiff(d,getdate(),logoTime)