select to_char(sysdate, 'yyyy-MM-dd HH24:mi:ss ') from dual; --mi表示的是当前的分 正确
select to_char(sysdate, 'yyyy-MM-dd HH24:mm:ss ') from dual; --mm表示的当前的月份
select to_char(sysdate, 'yyyy-MM-dd ') from dual; --mm表示的当前的月份
select flowname 流程 ,to_char(starttime,'yyyy-MM-dd') 日期,count(1) 数量
from a
where a.starttime >= date '&enddate' group by flowname,to_char(starttime,'yyyy-MM-dd') order by 数量