Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What should be the return type for a cursor variable?

5 like 0 dislike
What should be the return type for a cursor variable.Can we use a scalar data type as return type?
asked 1 year ago by marck_don (191,010 points)

1 Answer

1 like 0 dislike
 
Best answer
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
answered 1 year ago by daneim (127,080 points)

Related questions

7 like 0 dislike
1 answer
5 like 0 dislike
1 answer
7 like 0 dislike
1 answer
7 like 0 dislike
1 answer
4 like 0 dislike
1 answer