select * from gcnews where (smallclassid=101 or smallclassid=102) and datediff(d,updatetime,getdate()) = 0

解决方案 »

  1.   

    我不太明白你的意思
    select * from gcnews where (smallclassid=101 or smallclassid=102) and datediff(d,updatetime,getdate()) = 0
      

  2.   

    select * from gcnews where (smallclassid=101 or smallclassid=102) and datediff(d,updatetime,getdate()) = 0 
    这种方法不行 一个都没有查出来
      

  3.   

    select * from gcnews where datediff(d,updatetime,getdate()) = 0
    and smallclassid in (101,102)