对于以下查询,我期望值从 1 到 899 列出。但它只返回从 1 到 667 的值。有人可以帮我找出原因吗
select rownum from all_tables where rownum <900
您的表少于 899 个。
the simplest row generator that would not come up short due to lack of rows in your source table / view is:
select rownum from dual connect by level < 900;
尝试:
select level as rnum
from dual
connect by level < 900;
select rownum from all_objects where rownum <900