pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benoît Bournon <benoit.bournon@adelis.com>
To: pgsql-sql@postgresql.org
Subject: How can I use a name of table in attribute of function, I try PREPARE ...
Date: Tue, 27 May 2003 13:53:57 +0200
Message-ID: <3ED351D5.3060408@adelis.com> (raw)

I can do that on PostgreSQL 7.3 ??



Is it possible to do that ? or must I upgrade my server ??


PREPARE q1(text) FROM SELECT * FROM pg_tables WHERE tablename = $1 ;
EXECUTE q1 USING 'client' ;

DEALLOCATE q1 ;





Message-ID: <3ED351D5.3060408@adelis.com>
Permalink:  ../3ED351D5.3060408@adelis.com/
Also on:    postgresql.org/message-id/3ED351D5.3060408@adelis.com

 · 

reply

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: benoit.bournon@adelis.com
  Subject: Re: How can I use a name of table in attribute of function, I try PREPARE ...
  In-Reply-To: <3ED351D5.3060408@adelis.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