Need Assistance?

support@tutorialshub.in

JSONB & Arrays in PostgreSQL

Querying JSONB (->, ->>, @>)

ADVERTISEMENT
PostgreSQL Free Lesson
5 min read
ADVERTISEMENT
  • -> returns a JSON object/array.
  • ->> extracts the value as plain TEXT.
  • @> checks if the left JSONB contains the right JSONB (uses GIN index!).
ADVERTISEMENT
Hi, I'm Tuby! Here to help you