From: Philippe Lang <philippe.lang@attiksystem.ch>
To: pgsql-sql@postgresql.org
Cc: Michael Glaesemann <grzm@myrealbox.com>
Subject: Re: sql query with join and parameter in postgresql function
Date: Fri, 16 Jan 2004 14:03:26 +0100
Message-ID: <6C0CF58A187DA5479245E0830AF84F420AFA28@poweredge.attiksystem.ch> (raw)
> > I thought a view would be more appropriate, but
> > if I'm not wrong, a view does not accept any parameter
> > as input...
>
> But you can just define the view and select it with a WHERE clause
with
> your parameter, just like a normal table. Would that help?
Thanks! That's perfect. I join in a view, and limit in a function, with
a WHERE clause. And no need for any redundant composite type, although I
agree this is not that complicated to use...
Philippe Lang
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: philippe.lang@attiksystem.ch, grzm@myrealbox.com
Subject: Re: sql query with join and parameter in postgresql function
In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420AFA28@poweredge.attiksystem.ch>
* 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