PostgreSQL - JSON and JSONB
Why does this query fail?SELECT * FROM users WHERE profile @> '{"age": 30}';
Given that profile is of type JSON, not JSONB.
Why does this query fail?SELECT * FROM users WHERE profile @> '{"age": 30}';
Given that profile is of type JSON, not JSONB.
@> operator is defined for JSONB type, not JSON.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions