sql 输出n的数字
想用sql输出100个数字 比如 select 1,2,3,4,5,......, 100 from dual;
有没有不用枚举的方法?谢谢
------解决方案--------------------select rownum n from all_objects where rownum<=100
------解决方案--------------------SQL code
select level from dual connect by level <=100;