SELECT ROWNUM
FROM DUAL
CONNECT BY ROWNUM<=1000000;
or if you need random numbers, just simply use
SELECT DBMS_RANDOM.VALUE
FROM DUAL
CONNECT BY ROWNUM<=1000000;
source : http://www.oracledba.co.uk/tips/cute_rownum.htm
Subscribe to:
Post Comments (Atom)
Followers
About Me
- reiki
- Torrance, CA, United States
No comments:
Post a Comment