Array Question

Поиск
Список
Период
Сортировка
От Terry Lee Tucker
Тема Array Question
Дата
Msg-id 200410292108.38894.terry@esc1.com
обсуждение исходный текст
Ответы Re: Array Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Greetings:

I have a customer history table that contains several integer and decimal
arrays for recording sales and load count information for each of the 12
months. I'm trying to modify one of the arrays in a pre-update trigger. I'm
looping as in:

for x in 1..12 loop
    array[x] = <some_value>;
    .
    .
    .
end loop;

This will not compile. I get the following error:

ERROR:  syntax error at or near "["

If I comment that line out, all works well. Any ideas?

Thanks...

--
Quote: 73
"Inasmuch as these people draw near with their mouths
 And honor Me with their lips,
 But have removed their hearts far from Me,
 And their fear toward Me is taught by the commandment of men..."

 -- Isiah 29:13

 Work: 1-336-372-6812
 Cell: 1-336-363-4719
email: terry@esc1.com

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

Предыдущее
От: "Marcus Andree S. Magalhaes"
Дата:
Сообщение: Re: behaviour of LENGTH() in postgresql v. 8
Следующее
От: Terry Lee Tucker
Дата:
Сообщение: Fwd: Array Question