Oracle按时间段分组统计:
- select count(*), to_char(t.input_time, 'yyyy-mm-dd') time
- from news_info t
- group by to_char(t.input_time, 'yyyy-mm-dd')
- order by to_char(t.input_time, 'yyyy-mm-dd') asc nulls last
结果:
背景:
阅读新闻
相关资讯
oracle
|
最新资讯
|