I have column arr which is of type array.
arr
array
I need to get rows, where arr column contains value s
s
This que
Note that this may also work:
SELECT * FROM table WHERE s=ANY(array)
Try
SELECT * FROM table WHERE arr @> ARRAY['s']::varchar[]
SELECT * FROM table WHERE arr && '{s}'::text[];
Compare two arrays for containment.