Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Create table in functions - Mailing list pgsql-sql

From hlefebvre
Subject Re: Create table in functions
Date
Msg-id [email protected]
Whole thread Raw
In response to Create table in functions  (Andreas Tille <[email protected]>)
List 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.


pgsql-sql by date:

Previous
From: [email protected] (Anatoly K. Lasareff)
Date:
Subject: Re: Null function parameters
Next
From: Alex Guryanow
Date:
Subject: sorting in UNICODE table