SQL to generate a list of numbers from 1 to 100

后端 未结 11 1546
悲&欢浪女
悲&欢浪女 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:21

    Peter's answer is my favourite, too.

    If you are looking for more details there is a quite good overview, IMO, here.
    Especially interesting is to read the benchmarks.

提交回复
热议问题