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

if a table is getting updated what happens if a function is called from sql query?

2 Answers   RBS,


What are two parts of package ?

2 Answers   Infosys,


What is trigger with example?

0 Answers  


Write one update command to update seqno field of a table on the basis of row number.

4 Answers   HCL,


What are sql functions? Describe in brief different types of sql functions?

0 Answers  


what is the difference between varray and table data type..please expalain with some examples... under what situation you will go for varray..instead of index by table...

1 Answers   HCL, Satyam,


What are the pre requisites?

1 Answers  


What is user defined functions?

0 Answers  


What are crud methods?

0 Answers  


What is user in sql?

0 Answers  


What is the main difference between sql and pl/sql?

0 Answers  


can we create index on index?

7 Answers   iFlex, Symphony,


Categories