I'm experimenting with postgres jsonb
column types, and so far so good.
One common query I'm using is like this:
select count(*) from jsonbtest WHERE attributes @> '{"City":"Mesa"}';
How do I reverse that? Is there a different operator or is it simply used as
select count(*) from jsonbtest WHERE NOT attributes @> '{"City":"Mesa"}';
NOT
?NOT
simply doesn't work. Using theattributes->>'City' <> 'Mesa'
formulation also doesn't work.NOT
works pretty well.