Difficulty: Easy
Correct Answer: Forward-only cursor.
Explanation:
Introduction / Context:
Cursors define both visibility and navigation. Some applications need the simplest, most efficient traversal: move to the next row only, without random access or backward movement.
Given Data / Assumptions:
Concept / Approach:
A forward-only cursor provides minimal navigation capability—FETCH NEXT repeatedly. Because it avoids maintaining bidirectional state, it can be lighter-weight and faster, especially for streaming large results.
Step-by-Step Solution:
Verification / Alternative check:
Database documentation consistently defines forward-only as a navigation limitation: you can only fetch the next row each time. This fits ETL and stream processing scenarios well.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Forward-only cursor.
Discussion & Comments