查询某一支接口,指定时间段的数据 按分钟排序
生活随笔
收集整理的這篇文章主要介紹了
查询某一支接口,指定时间段的数据 按分钟排序
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--查詢某一支接口,指定時間段的數據 按分鐘排序
select a.servicename,reqdate,substr(reqtime,1,5),count(1)from 表名 awhere servicename = '接口名'and reqdate = date '2020-06-28'and reqtime >= '16:00:00'and reqtime <= '17:00:00'group by a.servicename,a.reqdate,substr(a.reqtime,1,5) order by to_date(to_char(a.reqdate,'yyyy-MM-dd ') || substr(a.reqtime,1,5),'yyyy-MM-dd hh24:mi');--查詢某一支接口,指定時間段的數據 按分鐘排序
select a.servicename,reqdate,substr(reqtime,1,5),count(1)from trace awhere servicename = 'insure'and reqdate = date '2020-06-28'and reqtime >= '16:00:00'and reqtime <= '17:00:00'group by a.servicename,a.reqdate,substr(a.reqtime,1,5) order by to_date(to_char(a.reqdate,'yyyy-MM-dd ') || substr(a.reqtime,1,5),'yyyy-MM-dd hh24:mi');
總結
以上是生活随笔為你收集整理的查询某一支接口,指定时间段的数据 按分钟排序的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Git的3大区域
- 下一篇: (进阶篇_01)Oracle数据同步3种