Can we use SQL%ISOPEN in implicit cursors? Does this
attribute works properly in Implicit Curosors?

Answers were Sorted based on User's Feedback



Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors..

Answer / pr@$@d

Implicit cursors: SQL%ISOPEN always returns FALSE,
indicating that the implicit cursor has been closed.

I hope below example gives you very fair idea.

SQL> BEGIN
2 UPDATE employee
3 SET salary = salary *2
4 WHERE id = '01';
5
6 IF not SQL%ISOPEN THEN
7 DBMS_OUTPUT.PUT_LINE('closed');
8 END IF;
9 END;
10 /
closed

PL/SQL procedure successfully completed.

Thanks
-Pr@$@d

Is This Answer Correct ?    13 Yes 6 No

Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors..

Answer / pradeep naidu manne tcs

IMPLICIT CURSORS ARE OPENED N CLOSED IMPLICITLY SO SQL%FOUND WILL ALWAYS EVALUATES FALSE

Is This Answer Correct ?    4 Yes 0 No

Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors..

Answer / chandu

sure..

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More SQL PLSQL Interview Questions

1. how to use the check option constraints in sql query..? 2.how to add data in a complex query ? 3.is it possible to use commit or rollback or savepoint in triggers...if not why please explain with examples...? 4.what is the difference between meterialized view and normal view..how to create materialized view and how to use it..? 5.what is varray...? what is the advantage of the varray ? please expalin with a simpel example..i want to load into a table (student no and name and his marks..) please give example.. 6.what are the bulk bind exceptions...how to use bulk bind and how to use bulk collect..please explain with example... 7.what is for update of and where current of ...? 8 what is the use of nowait ? 9.please give an example for nocopy in a simple plsql query 10.create an index in a table...tellme how to use the index in a where clause to do performance tunning...

3 Answers   Satyam,


What is identity column in sql server?

0 Answers  


Is it possible to create startup or shutdown trigger for on-schema?

0 Answers  


Explain the uses of control file.

0 Answers  


which will default fire first  statement level trigger or row level trigger

2 Answers   Cap Gemini, Data Vision,






What are pl sql procedures?

0 Answers  


How do you modify a table in sql?

0 Answers  


What are different types of joins ?

5 Answers   BirlaSoft,


Why is pl sql used?

0 Answers  


what is sql in mysql? : Sql dba

0 Answers  


How do I run sql profiler?

0 Answers  


Why do we use %rowtype & %type in plsql?

0 Answers  


Categories