select * from article where xxxxxxxxxxx

解决方案 »

  1.   

    select * from article where convert(char(10),日期,121)=convert(char(10),getdate(),121)
      

  2.   

    select * from article where DateDiff(dd,日期,GetDate()) = 0
      

  3.   

    select * from article where DateDiff(dd,日期,GetDate()) = 0
    -----------
    这个比较简洁
      

  4.   

    --用datediff()函数,和今天相差天数为0的数据select * from article where DateDiff(dd,日期,GetDate()) = 0
      

  5.   

    --tryselect * from article where AddTime>=convert(char(10), getdate(), 120)
    and AddTime<convert(char(10), getdate()+1, 120)