From: tkohegyi@gw.cdk.bme.hu
To: pgsql-sql@postgresql.org
Subject: create new table
Date: Tue, 22 Jun 1999 15:33:44 +0200
Message-ID: <m10wQg5-000BdLC@gw.consultronics.hu> (raw)
Hi all,
I have to create a table in a function, but i know
the name of the new
table inside the fuction only.
How can I do this? (PL/PgSQL)
e.g.:
---------------------------
DECLARE a text;
...
BEGIN
a := 'newdb';
...
CREATE TABLE a (...);
...
------------------------------
-> parse error at or near "$1"
So it does not work...
Any idea?
Thanks,
Tamas
e-mail: tkohegyi@gw.cdk.bme.hu
| T a m a s K o h e g y i | H-1111 Budapest, Muegyetem rkp. 3|
| Consultronics Development Ltd. | BME, building D. 1st floor |
| HUNGARY | Tel: +36 (1) 372 0580 |
| http://www.consultronics.com | E-mail: tkohegyi@gw.cdk.bme.hu |
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tkohegyi@gw.cdk.bme.hu
Subject: Re: create new table
In-Reply-To: <m10wQg5-000BdLC@gw.consultronics.hu>
References: <m10wQg5-000BdLC@gw.consultronics.hu>
* 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