From: Michael Meskes <meskes@postgresql.org>
To: BTS <bts_postgresql@hotmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PREPARE in ECPG
Date: Sun, 15 Jun 2003 12:58:33 +0200
Message-ID: <20030615105833.GE8944@feivel.fam-meskes.de> (raw)
In-Reply-To: <Sea1-DAV73yLrxBwH5A0001d53e@hotmail.com>
References: <Sea1-DAV73yLrxBwH5A0001d53e@hotmail.com>
On Wed, May 28, 2003 at 08:58:56AM +0200, BTS wrote:
> We hope to be able to write statements like:
> EXEC SQL
> PREPARE stm (char(5), int) as SELECT a,b,c INTO :host_a, :host_b,
> :host_c
> FROM mytable WHERE d=$1 AND e=$2;
Are you able to do this via psql? I.e. can you specify a placeholder
like $1 in psql?
Michael
--
Michael Meskes
Email: Michael@Fam-Meskes.De
ICQ: 179140304, AIM: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
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-interfaces@postgresql.org
Cc: meskes@postgresql.org, bts_postgresql@hotmail.com
Subject: Re: PREPARE in ECPG
In-Reply-To: <20030615105833.GE8944@feivel.fam-meskes.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