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: simon <simon_at_simon.com>
Date: Tue, 14 Jun 2005 23:11:21 +0800
Message-ID: <42aef396$1_3@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. Received on Tue Jun 14 2005 - 10:11:21 CDT

Original text of this message

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