X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C88A830EBEF for ; Fri, 13 Jun 2003 15:07:55 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 50373-02 for ; Fri, 13 Jun 2003 12:07:45 -0300 (ADT) Received: from web13603.mail.yahoo.com (web13603.mail.yahoo.com [216.136.175.114]) by svr1.postgresql.org (Postfix) with SMTP id 1DA9B30EB82 for ; Fri, 13 Jun 2003 12:07:45 -0300 (ADT) Message-ID: <20030613150743.46827.qmail@web13603.mail.yahoo.com> Received: from [134.214.103.196] by web13603.mail.yahoo.com via HTTP; Fri, 13 Jun 2003 08:07:43 PDT Date: Fri, 13 Jun 2003 08:07:43 -0700 (PDT) From: Demidem Mohamed Amine Subject: create tables within functions To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200306/124 X-Sequence-Number: 13882 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