SQL to generate a list of numbers from 1 to 100

后端 未结 11 1506
悲&欢浪女
悲&欢浪女 2020-11-27 04:07

Using the DUAL table, how can I get a list of numbers from 1 to 100?

11条回答
  •  离开以前
    2020-11-27 04:35

    Another interesting solution in ORACLE PL/SQL:

        SELECT LEVEL n
          FROM DUAL
    CONNECT BY LEVEL <= 100;
    

提交回复
热议问题