Q. Which statements are used to control a cursor variable?
β
Correct Answer: (D)
All mentioned above
Explanation: There are three statements used to control a cursor variable:
1. OPEN-FOR - open a cursor variable for multi-row query
2. FETCH - it fetches the rows for the result set
3. CLOSE - when all the rows are processed the cursor variable is closed.