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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Simplest way to create/use PLSQL collections

RE: Simplest way to create/use PLSQL collections

From: Post, Ethan <Ethan.Post_at_ps.net>
Date: Wed, 18 May 2005 09:42:55 -0500
Message-ID: <E5D2567DDF0D03428A15664A78CA473C6B8249@pscdalpexch02.perotsystems.net>


Tim,

I recall some bugs in 9i related to use of TEMPORARY tables that have me in a "be careful" mindset, I would have to go back and find the bugs to recall why I am thinking this but maybe someone else knows what I am talking about.

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Tim Gorman Sent: Tuesday, May 17, 2005 10:14 PM
To: oracle-l_at_freelists.org
Subject: Re: Simplest way to create/use PLSQL collections

Ranko,

If your "browsing" has any degree of complexity, then instead of writing extensive PL/SQL to "browse" arrays, why not create a GLOBAL TEMPORARY table
and insert rows into it and "browse" them with SELECT statements? You can
set them up to clean themselves up after a COMMIT/ROLLBACK (i.e. end of transaction) or when your database session disconnects. A global temporary
table is essentially an extension of a session's private memory.

Do away with all that PL/SQL code and do it in SQL instead?

Just my $0.02...

-Tim

--
http://www.freelists.org/webpage/oracle-l
Received on Wed May 18 2005 - 10:47:46 CDT

Original text of this message

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