Difficulty: Medium
Correct Answer: Keyset
Explanation:
Introduction / Context:
Different cursor types balance stability versus currency of data. This question targets the cursor whose membership is fixed but values can reflect concurrent updates.
Given Data / Assumptions:
Concept / Approach:
A keyset cursor materializes the set of primary keys at open time. Data lookups at fetch time use those keys, so updates by other transactions are visible, deletions are detected, and inserts are not seen because the keyset is fixed.
Step-by-Step Solution:
Verification / Alternative check:
Vendor docs (e.g., SQL Server) describe keyset behavior exactly as stated: fixed row identity with live data values.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing “dynamic” (membership can grow/shrink) with “keyset” (membership fixed, values current).
Final Answer:
Keyset
Discussion & Comments