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 pl sql script?

560


Is oracle and sql same?

571


What is percent sign in sql?

717


how to rename an existing table in mysql? : Sql dba

574


What are sql injection vulnerabilities?

497






What is the difference between nvl function, ifnull function, and isnull function?

587


How do I view a sql trace file?

564


How many joins in sql?

553


Why is partition used in sql?

547


How do you rename a table in sql?

532


what is the difference between char and varchar data types? : Sql dba

537


Can a commit statement be executed as part of a trigger?

600


What is where clause in sql?

530


What is type and rowtype in pl sql?

536


how to include character strings in sql statements? : Sql dba

553