Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql search object in array

select r.*
from records r
where exists (select 1 
             from jsonb_array_elements(r.data -> 'entries') as e
             where e ->> 'name' like '%Doe%');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #search #object #array
ADD COMMENT
Topic
Name
9+7 =