arrays as parameters to pl/pgsql functions

From: "Julie May" <julie(at)ccorb(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: arrays as parameters to pl/pgsql functions
Date: 2003-11-17 21:35:29
Message-ID: 03e701c3ad52$b93b9880$687ba8c0@impsu.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is it possible to use an array as a parameter to a pl/pgsql function. I am
running version 7.3 and don't have the time right now to upgrade.If it is
possible, how do you iterate through the array? For example:

phpVariable[0]=1;
phpVariable[1]=2;
phpVariable[2]=3;

some_pl/pgsql_function(phpVariable?)
how do you access phpVariable[2] within the function?

Thanks.

Julie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2003-11-17 21:46:25 PostgreSQL v7.4 Released
Previous Message Martijn van Oosterhout 2003-11-17 20:55:17 Re: pg_constraint missing many entries?