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: pl/sql

Re: pl/sql

From: Valery Yourinsky <vsu_at_bill.mts.ru>
Date: Fri, 19 Jan 2001 13:28:16 +0300
Message-ID: <3A6816C0.E4518408@bill.mts.ru>

Hi,

The promlem arise due to 'bacref' has no elements. See fixed code below

CREATE OR REPLACE PROCEDURE vsu_word_search AS

   line CHAR(100) := 'that is fine yes it is';    pat CHAR(10) := 'is';
--

Valery Yourinsky
--

Oracle8 Certified DBA

ramirez134_at_my-deja.com wrote:

> 
> In article <3A66F003.86B23DCD_at_bill.mts.ru>,
>   Valery Yourinsky <vsu_at_bill.mts.ru> wrote:
> > ramirez134_at_my-deja.com wrote:
> >   CREATE OR REPLACE procedure word_search
> >   AS
> >   line char(100) := 'that is fine yes it is';
> >   pat char(10) := 'is';
> >   bacref  owa_text.vc_arr;
> > --
> > has_match BOOLEAN;
> > --
> >   BEGIN
> >    htp.htmlOpen;
> >    htp.headOpen;
> >    htp.title('word search');
> >    htp.headClose;
> >    htp.bodyopen;
> > --
> > -- No apostrophes!
> >    has_match := owa_pattern.match(line, pat, bacref);
> >    IF has_match = TRUE THEN
> >       FOR K IN bacref.FIRST .. bacref.LAST LOOP
> >          htp.p('K='||K||' "' ||bacref(K)||'"');
> >          htp.br;
> >       END LOOP;
> >    END IF;
> > --
> >    htp.bodyClose;
> >    htp.htmlClose;
> >   END;
> >
> > Valery Yourinsky
> > --
> > Oracle8 Certified DBA
> 
> Is there still something wrong, because I get message:
> ORA-06502: PL/SQL: numeric or value error
> 
> Is this definition right
> bacref  owa_text.vc_arr;
> 
> THANKS AGAIN
Received on Fri Jan 19 2001 - 04:28:16 CST

Original text of this message

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