From: Tamas Kohegyi <tkohegyi@gw.consultronics.hu>
To: pgsql-sql@postgresql.org
Subject: create new table
Date: Tue, 22 Jun 1999 15:32:21 +0200
Message-ID: <376F9065.A15A9BE@gw.cdk.bme.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
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.consultronics.hu
Subject: Re: create new table
In-Reply-To: <376F9065.A15A9BE@gw.cdk.bme.hu>
References: <376F9065.A15A9BE@gw.cdk.bme.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