Extract a text value from a JSONB document.
Section: Querying, Joins, and Aggregation
Extract JSONB field
sql
sql
SELECT payload->>'event_type' AS event_type FROM events;Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Querying, Joins, and Aggregation