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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PLSQL Collection

Re: PLSQL Collection

From: Chris \( Val \) <chrisval_at_bigpond.com.au>
Date: Wed, 15 Jun 2005 10:55:28 GMT
Message-ID: <AOTre.17509$F7.6101@news-server.bigpond.net.au>

"simon" <simon_at_simon.com> wrote in message news:42aef396$1_3_at_rain.i-cable.com...
|
| "Dmitry E. Loginov" <lde_at_mpsb.ru> ¦b¶l¥ó news:d8mmc8$5lf$1_at_news.caravan.ru
| ¤¤¼¶¼g...
| >
| > "simon" <simon_at_simon.com> wrote in message
| > news:42aed75e$1_3_at_rain.i-cable.com...
| > >
| > > > This is exactly what makes me confused. The 9iR2's PLSQL User's Guide
| > and
| > > > Reference never mention about this restriction. Actually, it claims
| > trim
| > > is
| > > > applicable to collection - which means INDEX BY TABLES, NESTED TABLES
| > and
| > > > Varrays!!!
| > > >
| > > > So my actual question is which collection type is trim applicable to?
| >
| > Read the manual carefully:
| > PL/SQL User's Guide and Reference
| > Release 2 (9.2)
| > Part Number A96624-01
| > 5. PL/SQL Collections and Records
| > Using Collection Methods
| > Collection methods cannot be called from SQL statements. ____Also, EXTEND
| > and TRIM cannot be used with associative arrays.____ EXISTS, COUNT, LIMIT,
| > FIRST, LAST, PRIOR, and NEXT are functions; EXTEND, TRIM, and DELETE are
| > procedures. EXISTS, PRIOR, NEXT, TRIM, EXTEND, and DELETE take parameters
| > corresponding to collection subscripts, which are usually integers but can
| > also be strings for associative arrays.
| >
| > > I dont know what is wrong with DELETE and TRIM. I have 3 books in my
| hand
| > > and they are all give me wrong (or conflicting) information related to
| > these
| > > 2. Two says both are applicable to INDEX BY. One says both are not
| > > applicable to INDEX BY!!!!
| >
| >
| >
| >
| Thanks, now I got it. Because I skipped that paragraph and read directly
| the description of TRIM method.

Yet you were convinced that there was conflicting evidence in not one, but three books :-)

Cheers,
Chris Val Received on Wed Jun 15 2005 - 05:55:28 CDT

Original text of this message

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