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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-sql by date

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