From: Keith Wong <keith@e-magine.com.au>
To: Volker Paul <vpaul@dohle.com>
To: pgsql-sql@postgresql.org
Subject: Re: Create table doesn't work in plpgsql
Date: Sun, 24 Dec 2000 14:44:01 +1100
Message-ID: <4.3.2.7.0.20001224143826.0284b160@mail.e-magine.com.au> (raw)
In-Reply-To: <3A43507A.1EC3BFAA@dohle.com>
References: <Pine.BSF.4.21.0012191350250.41512-100000@jliang.ipinc.com>
<3A41E0BA.FBEDF52F@dohle.com>
<20001221095456.C5037@thune.mrc-home.org>
I believe a couple of months back... a EXECUTE command was added to plpgsql
to allow users to dynamic sql statements.
So if you get the current development version you should be able to call
EXECUTE CREATE TABLE ....
or whatever sql you like. (I think this is still not in 7.03, not sure though)
I'm not sure about the exact syntax, but if you look in past threads for
"execute" I'm sure you'll find it.
Have fun.
Merry Xmas.
Keith.
At 02:00 PM 22/12/2000 +0100, Volker Paul wrote:
> > Can this be done using tcl or perl?
>
>I'll try them and report what I find out.
>
>V.Paul
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: keith@e-magine.com.au, vpaul@dohle.com
Subject: Re: Create table doesn't work in plpgsql
In-Reply-To: <4.3.2.7.0.20001224143826.0284b160@mail.e-magine.com.au>
References: <Pine.BSF.4.21.0012191350250.41512-100000@jliang.ipinc.com> <3A41E0BA.FBEDF52F@dohle.com> <20001221095456.C5037@thune.mrc-home.org> <4.3.2.7.0.20001224143826.0284b160@mail.e-magine.com.au>
* 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