本文介绍了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 的数字列表
发布评论