create tables within functions - Mailing list pgsql-sql

From Demidem Mohamed Amine
Subject create tables within functions
Date
Msg-id 20030613150743.46827.qmail@web13603.mail.yahoo.com
Whole thread Raw
Responses Re: create tables within functions
Re: create tables within functions
List pgsql-sql
hello,

Can anyone help me create a function that creates a
table, in this way for example :

create function create_table(text) returns integer as
'
begin create table $1 (id integer, stuff text); return 0;
end;'
language plpgsql;

it does not work !!

thnx

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: trigger : emulate "instead of" with before ?
Next
From: Stephan Szabo
Date:
Subject: Re: create tables within functions