How to open a cursor variable?



How to open a cursor variable?..

Answer / Gaurav Kumar

To open a cursor variable in Oracle PL/SQL, you can use the OPEN keyword followed by the name of the cursor variable. For example: DECLARE my_cursor SYS_REFCURSOR; OPEN my_cursor; This creates and opens a ref cursor named 'my_cursor'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What is a cursor variable?

1 Answers  


Explain the different normalization forms?

1 Answers  


What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command ?

1 Answers  


can you explain performance tunning in oracle(sql,PL/SQL)

2 Answers  


How to specify default values in insert statement using oracle?

1 Answers  


How to list all tables in your schema?

1 Answers  


What is the difference between an Oracle Schema and an Oracle Instance?

3 Answers   IBM,


What is the difference between pre-select and pre-query?

1 Answers  


What is the use of Redo Log Information ?

2 Answers  


Shall I get Pro*C Compiler in Oracle-10g release ?

1 Answers  


What is the database name in oracle?

1 Answers  


How to convert characters to times in oracle?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)