Re: How to select rows for which column has empty array ?

Поиск
Список
Период
Сортировка
От Bosco Rama
Тема Re: How to select rows for which column has empty array ?
Дата
Msg-id 5391E870.6000004@boscorama.com
обсуждение исходный текст
Ответ на How to select rows for which column has empty array ?  (Arup Rakshit <aruprakshit@rocketmail.com>)
Список pgsql-general
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.


В списке pgsql-general по дате отправления:

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Problem with locales on Linux with 9.3.4
Следующее
От: sramay
Дата:
Сообщение: Re: bytea Issue - Reg