Oracle 以当前时间为准,取前三个小时后两个小时的分钟枚举

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zuozewei/article/details/83091466
/*以当前时间为准,取前三个小时后两个小时的分钟枚举*/
with x as(
select 开始时间+level * 1/24/60 as 分钟
  from (select sysdate+2/24 as 结束时间,sysdate-3/24 as 开始时间
          from dual)
connect by level <= 300
)
select to_char(分钟,'yyyy-mm-dd hh24:mi')||':00' as 时间枚举 from x

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/zuozewei/article/details/83091466