Re: array iteration?

Поиск
Список
Период
Сортировка
Искать
От
Ben
Тема
Re: array iteration?
Дата
Msg-id
Pine.LNX.4.44.0311231636021.7403-100000@localhost.localdomain
Ответ на
Список
Дерево обсуждения
Re: Large objects [BLOB] again - general howto Randolf Richardson <rr@8x.ca>
Hey, that's cool. When did those functions arrive?

On Sun, 23 Nov 2003, Tom Lane wrote:

> Ben  writes:
> > On Sat, 2003-11-22 at 12:44, CSN wrote:
> >> Is it possible to iterate over an array in plpgsql?
> 
> > Yep.
> > http://archives.postgresql.org/pgsql-general/2003-11/msg00852.php
> 
> The cited example is pretty iffy since it assumes that the valid array
> entries are all > 0.  In recent PG version you can use the array_upper
> and array_lower functions instead:
> 
> 	for i in array_lower(a,1) .. array_upper(a,1) loop
> 	    -- do something with a[i]
> 	end loop;
> 
> 			regards, tom lane
> 


В списке pgsql-general по дате отправления
От: Stephen Robert Norris
Дата:
Сообщение: 7.4 Python configure hosed
От: Stephen Robert Norris
Дата:
Сообщение: The python module?
FAQ