I updated a few fields like this:
UPDATE designs
SET prices = '{ "at": 507, "ch": 751, "de": 447 }'
WHERE prices IS NULL;
Now I want to find all those rows:
SELECT * FROM designs
WHERE prices = '{ "at": 507, "ch": 751, "de": 447 }';
But I get this error:
ERROR: operator does not exist: json = unknown
Variations like WHERE prices LIKE '%"at": 507, "ch": 751, "de": 447%'
doesn't work neither.
The field prices
is from type json
and used PG version is 9.3