create tables within functions

Поиск
Список
Период
Сортировка
От Demidem Mohamed Amine
Тема create tables within functions
Дата
Msg-id 20030613150743.46827.qmail@web13603.mail.yahoo.com
обсуждение исходный текст
Ответы Re: create tables within functions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: create tables within functions  (chester c young <chestercyoung@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trigger : emulate "instead of" with before ?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: create tables within functions