...where 'value' = array[] - Mailing list pgsql-general

From zach cruise
Subject ...where 'value' = array[]
Date
Msg-id bcdac0e80904161515g1b45177hd7c246a1313beddd@mail.gmail.com
Whole thread Raw
Responses Re: ...where 'value' = array[]
List pgsql-general
i have table, like so:
group.group_name (varchar) | group.group_array (varchar[])
-
west coast | {CA,WA}
east coast | {NY,MA}

i can do this:
select group_name from group where 'CA' = any(array['CA','WA']);

but i need to select group_name where state_abbreviation is in
group_array, something like:
select group_name from group where 'CA' = any(group_array);
or
select group_name from group where 'CA' in (group_array);
or
select group_name from group where 'CA' in (select group_array from
group where true);

all ()[]{} have me confused
http://www.nabble.com/IN-with-arrays-td10011058.html

pgsql-general by date:

Previous
From: Michael Black
Date:
Subject: Re: Looking for advice on database encryption
Next
From: Tom Lane
Date:
Subject: Re: ...where 'value' = array[]