sql >> Base de Datos >  >> RDS >> Oracle

Oracle obtiene números con rango

Intente:

select 
  distinct START_SERIAL+level-1 SERIAL
from 
  YourTable
connect by level-1<=END_SERIAL-START_SERIAL
order by 1;