cursor is open or not?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiss07
    Banned
    New Member
    • Jan 2007
    • 99

    cursor is open or not?

    Dear friends,

    I write a program using oracle version 9i. in cursor .How can i find out

    is a cursor is open or not? after that what is bind variable ? what is the use of

    Bind variable in plsql?

    Expecting your replies...


    Arun..
  • ManjunathRG
    New Member
    • May 2007
    • 5

    #2
    Hi
    There are many cursor attributes which you can use.
    For your req.
    use %is_open

    Eg: if cursorname%is_o pen then...
    code..


    Bind variables are a method to improve performance of queries.
    They are used usually with execute immediate stmts. in plsql.
    A little bit of googling will you its syntax.


    Originally posted by kiss07
    Dear friends,

    I write a program using oracle version 9i. in cursor .How can i find out

    is a cursor is open or not? after that what is bind variable ? what is the use of

    Bind variable in plsql?

    Expecting your replies...


    Arun..

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      use cursor attrribute %ISOPEN

      it returns boolean value ie(true/false)

      Comment

      Working...