Re: array iteration?
| От | Ben |
|---|---|
| Тема | Re: array iteration? |
| Дата | |
| Msg-id | 1069534981.1639.368.camel@purple обсуждение исходный текст |
| Ответ на | array iteration? (CSN <cool_screen_name90001@yahoo.com>) |
| Ответы |
Re: array iteration?
|
| Список | pgsql-general |
Yep. http://archives.postgresql.org/pgsql-general/2003-11/msg00852.php On Sat, 2003-11-22 at 12:44, CSN wrote: > Is it possible to iterate over an array in plpgsql? > Something like: > > function insert_stuff (rel_ids int[]) > ... > > foreach rel_ids as id > insert into table (rel_id, val) > values (id, 5); > > > > __________________________________ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
В списке pgsql-general по дате отправления: