array iteration? - Mailing list pgsql-general

From CSN
Subject array iteration?
Date
Msg-id 20031122204443.29965.qmail@web40609.mail.yahoo.com
Whole thread Raw
Responses Re: array iteration?  (Ben <bench@silentmedia.com>)
List pgsql-general
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/

pgsql-general by date:

Previous
From: "Patrick Hatcher"
Date:
Subject: error loading shared libraries: libpq.so.3
Next
From: Ben
Date:
Subject: Re: array iteration?