Declaring empty, non-NULL array in plpgsql

Поиск
Список
Период
Сортировка
От CSN
Тема Declaring empty, non-NULL array in plpgsql
Дата
Msg-id 20031124051135.37111.qmail@web40601.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Declaring empty, non-NULL array in plpgsql
Список pgsql-general
Is there a way to declare an array in plpgsql so that
it's empty (not NULL)? The following causes arr to end
up being NULL:

arr varchar[];
-- do stuff with arr..
arr = array_append(arr, '','');


And this causes an unwanted element at the front:

arr varchar[] := array[''''];
-- do stuff with arr..
arr = array_append(arr, '','');


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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