I need to search with LIKE
or ILIKE
- applied to elements of a JSONB[]
column.
I can use unnest()
to display nested JSONB
elements separately, but I am having trouble combining that with my LIKE
expression. My query:
SELECT
UNNEST( column_jsonb[] )
FROM
table1
WHERE
UNNEST( column_jsonb[] ) ->> 'member_type' LIKE '%member%'
Results in an error:
argument of WHERE must not return a set
How to get this right?