create new table - Mailing list pgsql-sql

From Tamas Kohegyi
Subject create new table
Date
Msg-id 376F9065.A15A9BE@gw.cdk.bme.hu
Whole thread Raw
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Luiz Renuncio
Date:
Subject: Sharing a user defined type
Next
From: tkohegyi@gw.cdk.bme.hu
Date:
Subject: create new table