Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Global Temporary Tables

Re: Global Temporary Tables

From: Frank van Bortel <fvanbortel_at_netscape.net>
Date: Fri, 22 Apr 2005 19:29:44 +0200
Message-ID: <d4bc37$5ld$1@news4.zwoll1.ov.home.nl>


Roy Munson wrote:
> Each,
>
> Am wanting to create a temporary table within a PLSQL package. Have
> used
>
> EXECUTE IMMEDIATE 'create global temporary table temp_status........'
>
> Problem now is that package wont compile due to insert statements for
> this table. Compiler has no idea about this temp table or its
> structure.
>
> I take it temporary tables arent designed for this use are am i
> missing something here?
>
> Cheers

Please read the concepts manual about global temporary tables, and forget those M$ programming practices.

There can be no valid reason to create (global temporary or other) tables, using pl/sql (a.k.a. on-the-fly).

And now that you're asking - yes you completely missed the purpose of global temporary tables - as well as the Oracle transaction model, I assume.

-- 
Regards,
Frank van Bortel
Received on Fri Apr 22 2005 - 12:29:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US