skip to content
Alvin Lucillo

JSONB in PostgreSQL

/ 1 min read

💻 Tech

In PostgreSQL, if the column is of type jsonb, you can use the ->> operator to get the value of a key. For example:

SELECT * FROM users WHERE data->>'id' = '123';