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!

Does FOR i IN 1..10 Uses Cursor?

Karthick2003Jan 27 2012 — edited Jan 28 2012
Hi,

Yesterday i was conducting an interview and was asking questions related to cursor. I asked the candidate to explain about Implicit cursor.

He gave me an example like this.
 
for i in 1..10 
loop 
  ... 
end loop; 
At a first look it felt he was wrong. Because oracle creates a Cursor only for SQL statements. But then after the interview i started to think how oracle processes this? How is 1..10 is processed. What memory does it use?

Not sure if this is a silly question ;)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2012
Added on Jan 27 2012
8 comments
693 views