如何在休眠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
/