本帖最后由 guzizai2010 于 2011-10-17 21:53:01 编辑

解决方案 »

  1.   

     select time from table_name where time between  '2011-10-30 23:59:59' and '2011-10-30 23:59:59'
      

  2.   

    数据库里面的值全是这种形式的 29-9月 -11 03.52.49.428827 下午   你上面那个sql似乎没用啊    
      

  3.   


    数据库里面的值全是这种形式的 29-9月 -11 03.52.49.428827 下午 你上面那个sql似乎没用啊
      

  4.   

    select time from table_name where to_char(time,'yyyy-mm-dd hh:mm:ss') between '2011-10-01 00:00:01' and '2011-10-30 23:59:59'
      

  5.   


    数据库里面的date值全是这种形式  29-9月 -11 03.52.49.428827 下午    如果执行上面的sql会报错的...
      

  6.   


    把time换成29-9月 -11 03.52.49.428827 下午  肯定查不出数据了
      

  7.   

    直接写成to_char(日期时间,'yyyy-MM-dd') between '2011-10-01' and '2011-10-30'应该也可以实现你以上所需的功能。