Interviewer And Interviewee Guide

Oracle PL-SQL Interview Question:

How to avoid using cursors? What to use instead of cursor and in what cases to do so?

Submitted by: Administrator
Just use subquery in for clause

ex:For emprec in (select * from emp)

loop

dbms_output.put_line(emprec.empno);

end loop;

no exit statement needed

implicit open,fetch,close occurs
Submitted by: Administrator

Read Online Oracle PL-SQL Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG