pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Demidem Mohamed Amine <demidem_amine@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: create tables within functions
Date: Fri, 13 Jun 2003 08:07:43 -0700 (PDT)
Message-ID: <20030613150743.46827.qmail@web13603.mail.yahoo.com> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <20030613150743.46827.qmail@web13603.mail.yahoo.com>
Permalink:  ../20030613150743.46827.qmail@web13603.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030613150743.46827.qmail@web13603.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: demidem_amine@yahoo.com
  Subject: Re: create tables within functions
  In-Reply-To: <20030613150743.46827.qmail@web13603.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox