I want to search the pattern '%myvalue%' in key and value for a json field, return any one that matched.
I use
select * from dialogue_responses where field_rule like '%myvalue%'
it prompts me error
ERROR: operator does not exist: jsonb ~~ unknown
LINE 1: select * from dialogue_responses where field_rule like '%auf...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
What's he correct way of doing this?