How to generate a range of numbers between two numbers?

后端 未结 30 1869
执念已碎
执念已碎 2020-11-22 10:16

I have two numbers as input from the user, like for example 1000 and 1050.

How do I generate the numbers between these two numbers, using

30条回答
  •  北海茫月
    2020-11-22 10:34

    Oracle 12c; Quick but limited:

    select rownum+1000 from all_objects fetch first 50 rows only;
    

    Note: limited to row count of all_objects view;

提交回复
热议问题