When I am trying to find all records in details
table which have Linux
present in the array column operating_systems
.
Query select * from details where 'Linux' = ANY(operating_systems);
works perfectly and returns all records which have Linux
in operating_systems
column.
But if I want to get all records where I don't know
is present in operating_systems
I am unable to form a correct query.
Query select * from details where 'I don\'t know' = ANY(operating_systems);
does not escape single quotes and takes it literally, resulting in an incomplete query.