What is use of a cursor variable? How it is defined?

Q

What is use of a cursor variable? How it is defined?

✍: Guest

A

Cursor variable is used to mark a work area where Oracle stores a multi-row query output for processing. It is like a pointer in C or Pascal. Because it is a TYPE, it is defined as TYPE REF CURSOR RETURN ;

2011-11-01, 2647👍, 0💬