From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Madhavi <madhavi@zoniac.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: arrays (was untitled)
Date: Tue, 24 Sep 2002 06:51:09 -0700 (PDT)
Message-ID: <20020924064806.B92621-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <NHBBINJKLKIANIDACONLKEANCAAA.madhavi@zoniac.com>
On Tue, 24 Sep 2002, Madhavi wrote:
> How do I pass an array as an aruments in a postgres function? And how do I
> use it in the function??
Well, I've only got a 7.3devel machine to test, but:
create function f(int[]) returns int as
'select $1[1];' language 'sql';
select f('{3,4}');
seems to work for example.
What are you actually trying to do and in what language?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, madhavi@zoniac.com
Subject: Re: arrays (was untitled)
In-Reply-To: <20020924064806.B92621-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox