Re: Name the Parameters

From: Ian Barwick <barwick(at)gmx(dot)net>
To: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>, "psql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Name the Parameters
Date: 2003-09-06 05:21:26
Message-ID: 200309060721.26358.barwick@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Saturday 06 September 2003 06:42, Kumar wrote:
> Dear Gurus,
>
> Is it possible to name the IN parameters of the PLpgSQL Functions. Because
> naming the parameter will ease coding. See the following function for
> insert, having 10 parameters as a input.

No, though there is an item on the TODO list IIRC.

Using ALIAS FOR might make things easier though, something
along the lines of:

DECLARE
address_id ALIAS FOR $1;
address ALIAS FOR $2;
...
BEGIN
...

END;

Ian Barwick
barwick(at)gmx(dot)net

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alexei Chetroi 2003-09-06 11:07:09 SQL subqueries newbie help
Previous Message sad 2003-09-06 05:05:02 Re: recursive sql