Bird
0
0

What does the PostgreSQL operator #> do when used with JSON data?

easy📝 Conceptual Q11 of 15
PostgreSQL - JSON and JSONB
What does the PostgreSQL operator #> do when used with JSON data?
ADeletes JSON data at a specified path
BExtracts text at a specified path
CExtracts JSON data at a specified path
DUpdates JSON data at a specified path
Step-by-Step Solution
Solution:
  1. Step 1: Understand the operator #>

    This operator extracts JSON data from a JSON column or value at the given path as JSON type.
  2. Step 2: Compare with similar operator #>>

    The #>> operator extracts text, not JSON, at the path.
  3. Final Answer:

    Extracts JSON data at a specified path -> Option C
  4. Quick Check:

    #> extracts JSON data [OK]
Quick Trick: Remember #> returns JSON, #>> returns text [OK]
Common Mistakes:
  • Confusing #> with #>>
  • Thinking #> extracts text
  • Assuming #> modifies JSON

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes