Skip site navigation (1) Skip section navigation (2)

Re: Create table in functions

From: hlefebvre <hlefebvre(at)lexbase(dot)net>
To: Andreas Tille <tillea(at)rki(dot)de>
Cc: PostgreSQL SQL <pgsql-sql(at)hub(dot)org>
Subject: Re: Create table in functions
Date: 2000-08-24 09:36:01
Message-ID: 39A4EC81.BF9ECFC5@lexbase.net (view raw or flat)
Thread:
Lists: pgsql-sql
Andreas Tille wrote:
> What does this mean?  The ERROR is caused by the Create Table statement
> (when I removed it from my complex function it worked well).
> So why doesn't this work and what copy function fails here??

Maybe you can create your table using a select into statement :

something like :
SELECT int4(1) as Num INTO Temp_NumTable WHERE 1=2;

Should create your table without CREATE statement.

In response to

pgsql-sql by date

Next:From: Alessandro ValentiDate: 2000-08-24 12:52:36
Subject: Tutorial
Previous:From: Anatoly K. LasareffDate: 2000-08-24 06:39:54
Subject: Re: Null function parameters

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group