I have the following jsonb structure:
{'this': '1', 'this_that': '0', 'this_and_that': '5'}
How to select rows containing a LIKE statement?
SELECT * FROM myjson WHERE j ? 'this_%'
Returns 0 rows ... hoped this would match 'this_that' and 'this_and_that'. (Note: the characters following the "_" can vary greatly, and therefore I cannot make an exact match.)
json postgresql jsonb
user776942
source share