PostgreSQL - JSON and JSONB
You want to find all rows in the events table where the JSONB column details contains either the key 'location' or the key 'venue'. Which query correctly uses the JSONB existence operator to achieve this?
You want to find all rows in the events table where the JSONB column details contains either the key 'location' or the key 'venue'. Which query correctly uses the JSONB existence operator to achieve this?
?| operator checks if any key in the array exists in the JSONB data.?| array['location', 'venue'], which matches the requirement.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions