Multiple choice technology databases

When do you open cursor before Fetching i) Cursor should always be Opened before Fetching ii) Fetch Operation cursor retrieves Only ONE row for every execution.

  1. Both are True

  2. i) Is Only True

  3. ii) is only True

  4. Neither is True

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A cursor must always be opened before fetching rows. In standard embedded SQL, each execution of the FETCH statement retrieves exactly one row into host variables. Both statements are true, making the selected option correct.