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

What is Pragma EXECPTION_INIT ? Explain the usage ?

2 Answers  


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

3 Answers  


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

0 Answers  


which types of join is used in sql widely? : Sql dba

0 Answers  


what are the different type of sql's statements ? : Sql dba

0 Answers  


Name Salary Abc 50000 Abc 50000 xyz 20000 find the max salary using aggregate function?

2 Answers   CTS,


What is pls integer?

0 Answers  


What are sql constraints?

0 Answers  


How can I speed up sql query?

0 Answers  


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

0 Answers   TCS,


What is a left inner join?

0 Answers  


What are triggers in sql?

0 Answers  


Categories