内容如标题

解决方案 »

  1.   

    使用详细时间查询,select * from table where [时间] between 2008-12-14 08:08:08 and  2008-12-15 08:08:08 
      

  2.   

    select UpdateTime,Hits from article   where   UpdateTime>=dateadd(day,-1,getdate()) and UpdateTime<=getdate() order by   A.Hits desc
      

  3.   

    select   *   from   table   where   date=to_char(sysdate-1,'yyyy-mm-dd')
      

  4.   

      我成这样了,为什么还是不对那.OleDbCommand cmd = new OleDbCommand("select count(*) from goods_cons where titlename='" + p.Titlename + "'and time>='" + DateTime.Now.AddHours(-24) + "'", con);   
      

  5.   

    好象少了空格!!
    ..."'空格and time>='"