SQL生成从1到100的数字列表 [英] SQL to generate a list of numbers from 1 to 100
本文介绍了SQL生成从1到100的数字列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用DUAL表获取1到100之间的数字列表?
Using the DUAL table, how can I get a list of numbers from 1 to 100?
推荐答案
您的问题很难理解,但是如果您要选择从1
到100
的数字,则可以解决这个问题:>
Your question is difficult to understand, but if you want to select the numbers from 1
to 100
, then this should do the trick:
Select Rownum r
From dual
Connect By Rownum <= 100
这篇关于SQL生成从1到100的数字列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文