SELECT to_char(to_date(time1,'HH24:MI:SS'),'HH24'),test,COUNT(er) FROM table
where to_char(to_date(DATE1,'yyyy-MM-dd'),'yyyy-MM-dd')='2023-04-11'
and test='33333'
group by to_char(to_date(time1,'HH24:MI:SS'),'HH24'),test
ORDER BY to_char(to_date(time1,'HH24:MI:SS'),'HH24')
oracle 数据库格式化日期和时间
最新推荐文章于 2024-08-20 21:25:48 发布