arrays in pl/pgsql

Поиск
Список
Период
Сортировка
От Michael Shapiro
Тема arrays in pl/pgsql
Дата
Msg-id 200312160339.hBG3d0q31028@osage.ncsa.uiuc.edu
обсуждение исходный текст
Ответы Re: arrays in pl/pgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Is it possible in pl/pgsql to declare and then assign to arrays?
For example if I declare an array as follows
DECLARE    dn text[];

How do I assign the first element to a string (say 'a').
I have tried the following (which doesn't work)
dn[1] := \'a\';

The parser doesn't like the [ that follows dn.




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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: NOT-IN CLAUSE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: arrays in pl/pgsql