From: Graham Vickrage <graham@digitalplanit.com>
To: pgsql-sql@postgresql.org
Subject: Re: SQL For smarties
Date: Wed, 20 Feb 2002 18:55:51 -0000
Message-ID: <NDBBJABDILOPAOOMFJHOGEAMDEAA.graham@digitalplanit.com> (raw)
In-Reply-To: <3C7281ED.357E495E@trade-india.com>
I am trying to create tables from within a funtion i.e.
create function _tree_create(text) retuns int as '
begin;
create table $1_tree (....);
return 1;
end;
...
select _tree_create('item');
An error message refering to $1 gets thrown up. Is this not possible to do
or is there another way of doing it?
Thanks in advance.
Graham
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: graham@digitalplanit.com
Subject: Re: SQL For smarties
In-Reply-To: <NDBBJABDILOPAOOMFJHOGEAMDEAA.graham@digitalplanit.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