What should be the return type for a cursor variable.Can we use a scalar data type as return type?



What should be the return type for a cursor variable.Can we use a scalar data type as return type?..

Answer / nishi

The return type for a cursor must be a record type.It can be declared explicitly as a user-defined or %ROWTYPE can be used. eg TYPE t_studentsref IS REF CURSOR RETURN students%ROWTYPE

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How to create a table interactively?

0 Answers  


Explain oracle instance.

0 Answers  


How to manage transaction isolation level?

0 Answers  


What is a parameter file in oracle?

0 Answers  


How to bring a tablespace online?

0 Answers  






What is an oracle tablespace?

0 Answers  


how can find the second max sal for every group(i.e i want group the data based on key and find the second max sal for every group

2 Answers   Verizon,


How do I manually uninstall oracle client?

0 Answers  


what is pragma?

2 Answers  


what is the syntax of SELECT command?

6 Answers  


How to define an oracle sub procedure?

0 Answers  


what is a view?

7 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)