Given a jsonb
column called pairs
with data such as the following in a single record:
{ "foo": 1, "bar": 2 }
How to query for records where a given value is one of the values in the above field.
For example, query for 1 would match the above record.
Query for 3 would not match.
PostgreSQL 9.5