On 06/06/14 07:30, Arup Rakshit wrote: > > How would I select rows which has empty array for the field "team_ids" ?
The shortest way is to test against an empty array constant: select id from reporting_groups where team_ids = '{}'; Or you can test using array_length(). Or you test against an empty array[], cast appropriately. HTH, Bosco. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general