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 see the data (in unix) using dataset in datastage?

1 Answers   iGate,


How to pass a cursor variable to a procedure?

0 Answers  


What is an oracle tablespace?

0 Answers  


various types of hints and their usage

0 Answers  


How to create an oracle database?

0 Answers  






What is a proxy object?

0 Answers  


Difference between inner join vs where ?

0 Answers  


Name the various constraints used in oracle?

0 Answers  


In which dictionary table or view would you look to determine at which time a snapshot or MVIEW last successfully refreshed?

1 Answers  


after installatio of ORACLE 8i, work properly, but after restarting the system, it throw an error ORA 01034: ORACLE not availble

1 Answers  


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

0 Answers  


What is clustered table in Oracle?

0 Answers   MCN Solutions,


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)