Reputation: 109
There is a json_agg resulting in [10,20]
or [null]
. I want to filter all rows with [null]
in the column. How is it possible to achieve this?
Upvotes: 0
Views: 101
Reputation: 246858
Sounds like a simple WHERE
condition:
WHERE jsoncol::text = '[null]'
Upvotes: 1