可以
用:
select count(*) from table
group by to_date(to_char(builtdate,'yyyy-MM-dd'),'yyyy-MM-dd')

解决方案 »

  1.   

    二楼正解!
    也可以使用instr函数
      

  2.   

    巨同意:inprise_lyj(只愛一點點) htpt
      

  3.   

    select count(*) from table
    group by to_date(to_char(builtdate,'yyyy-MM-dd'),'yyyy-MM-dd')
    可以解决的
      

  4.   

    莫急,等我明天试一下我用
    select count(*) from table
    group by to_char(builtdate,'yyyy-MM-dd')行不通
    为什么?
      

  5.   

    好象二楼的,在8i database OK, 但是9i是不行的,
    我用过,建议转变思路,用View 可解决.
     create view v1(bt,other) as 
    select to_char(builtdate,'yyyy-MM-dd'),other
    from table;select count(*) from v1
    group by bt;
      

  6.   

    group by to_char(builtdate,'yyyy-MM-dd')肯定不行,就是得象二楼那样的来做,因为表里对应字段类型不是varchar2
      

  7.   

    try;select count(*) from table group by to_char(trunc(builtdate),'yyyy-mm-dd hh24:mi:ss')