如何在休眠查询中使用“ with ... as”查询语句?

时间:2019-03-22 07:25:30

标签: oracle hibernate

如何在休眠hql中使用下面的oracle查询,这里-2和5是动态值?

with data as
(
select 10254 keycol,-2 start_point,5 end_point from dual union all
select 10255 keycol,-8 start_point,1 end_point from dual
)
select keycol
      ,start_point + rws.column_value - 1 datapoint
  from data
      ,table(cast(multiset
(
select level
  from dual
connect by level <= end_point-start_point + 1) as sys.odcinumberlist)) rws
/

0 个答案:

没有答案