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 retrieve data from different tables ,place this data in different excel worksheets.

1 Answers   Gap Inc,


What is oracle open database communication (odbc)?

0 Answers  


you are sorting a table using "order by"(descending) clause of a column which contains a null value...whether that row containing null value will come first or last in the output??

2 Answers   BirlaSoft,


Can cursor variables be stored in PL/SQL tables.If yes how. If not why?

1 Answers  


What is an oracle user role?

0 Answers  






Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

0 Answers   Microsoft,


How to assign a tablespace to a users in oracle?

0 Answers  


what is the difference between rollback & commit? can a foreign key has null value?

6 Answers  


How to filter out duplications in the returning rows using oracle?

0 Answers  


What is the effect of setting the value of OPTIMIZER_MODE to 'RULE' ?

1 Answers  


What are the uses of linked server and explain it in detail?

0 Answers  


How to define Data Block size ?

2 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)