Re: Checking empty array

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Checking empty array
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C26ABD74@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Checking empty array  (Alexis Beuraud <alexis@siatel.com>)
Список pgsql-general
Alexis Beuraud wrote:
> What is the correct way to check whether an array is empty?
>
> Here is what I do, in pseudo-code:
>
> -- Is my array empty now?
> IF (myarray isnull) THEN

Try this:

IF array_lower(myarray, 1) IS NULL THEN ... END IF

Yours,
Laurenz Albe

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

Предыдущее
От: "Filip Rembiałkowski"
Дата:
Сообщение: Re: Data cube in PostgreSQL
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Collation sequence and use of operatings system's locale