what is the difference between cursor FETCH and FOR LOOP ?

Answer Posted / kiran kumar

The cursor FOR LOOP implicitly declare loop index as a
record of %ROWTYPE open a cursor implicity and repeatedly
fetch the records from the active set into the field of
record, then close the cursor implictly all rows have been
processed.
In case of cursor FETCH explicity open a cursor, fetch the
records and close the cursor.

Is This Answer Correct ?    26 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of non clustered index?

714


Can there be 2 primary keys in a table?

725


How do you write a complex sql query?

779


What is the difference between nested table and varray?

688


What is varchar data type in sql?

715






How is a PL/SQL code compiled?

871


how to convert numeric values to character strings? : Sql dba

778


Does inner join return duplicate rows?

704


what is primary key? : Sql dba

710


What does select * from mean in sql?

2544


What are different types of queries in sql?

735


List the ways to get the count of records in a table?

655


What are all the different normalizations?

745


What are the constraints available in sql?

781


Can two tables have same primary key?

731