ORACLE SQL:Get all integers between two numbers

This trick with Oracle’s DUAL table also works:

SQL> select n from
  2  ( select rownum n from dual connect by level <= 10)
  3  where n >= 3;

         N
----------
         3
         4
         5
         6
         7
         8
         9
        10

Leave a Comment