Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

diffrence between ROWNUM an d LEVEL

K NMay 27 2013 — edited May 27 2013
hi,

i just saw the thread {thread:id=2541136}
SELECT	SUBSTR ('INDIA', LEVEL, 1)	AS letter
FROM	dual
CONNECT BY	LEVEL	<= LENGTH ('INDIA');

and

SELECT	SUBSTR ('INDIA', ROWNUM, 1)	AS letter
FROM	dual
CONNECT BY	ROWNUM	<= LENGTH ('INDIA');
are giving same result. so what is the difference?
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
This post has been answered by Frank Kulash on May 27 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2013
Added on May 27 2013
7 comments
1,799 views