From: Evil Azrael <evilazrael@evilazrael.de>
To: pgsql-sql@postgresql.org
Subject: Query with Parameters
Date: Wed, 6 Feb 2002 17:53:23 +0100
Message-ID: <169124879927.20020206175323@evilazrael.de> (raw)
In-Reply-To: <200202042320.g14NKiQ28800@usermail.freecity.de>
References: <200202042320.g14NKiQ28800@usermail.freecity.de>
Hello!
I hope this question was not asked before.
What i need is SELECT with parameters. Afaik Views don´t take
parameters and functions can´t return multiple tuples. Am i right? Or
have i overseen something in the documentation or in the 1.8 million
pages about PgSQL which Google.com knows?
My main problem is that i have a complex query in which very often the
same tables and fields are being used. A simple SQL-function would be
very handy, but how do i return multiple records at the same time?
as a simple example, is a function like this possible?
SELECT funktion('field','table');
where funktion is implemented like this :
SELECT $1 FROM $2;
Thanks for any answer in advance
Christoph Nelles
evilazrael@evilazrael.de
--
Mit freundlichen Grüssen
Evil Azrael mailto:evilazrael@evilazrael.de
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: evilazrael@evilazrael.de
Subject: Re: Query with Parameters
In-Reply-To: <169124879927.20020206175323@evilazrael.de>
* 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