Re: Create table doesn't work in plpgsql - Mailing list pgsql-sql

From Keith Wong
Subject Re: Create table doesn't work in plpgsql
Date
Msg-id 4.3.2.7.0.20001224143826.0284b160@mail.e-magine.com.au
Whole thread Raw
In response to Re: Create table doesn't work in plpgsql  (Volker Paul <vpaul@dohle.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Create table doesn't work in plpgsql
Next
From: "Joe Conway"
Date:
Subject: Fw: Optimization recommendations request