ORACLE SQL:Get all integers between two numbers

前端 未结 13 1135
说谎
说谎 2020-12-03 13:42

Is there any way to select the numbers (integers) that are included between two numbers with SQL in Oracle; I don\'t want to create PL/SQL procedure or function.

Fo

相关标签:
13条回答
  • 2020-12-03 14:24

    One way to generate numbers from range is to use XMLTABLE('start to end'):

    SELECT column_value
    FROM XMLTABLE('3 to 10');
    

    DBFiddle Demo

    0 讨论(0)
提交回复
热议问题