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 -> HELP : Store Procedure Question ?

HELP : Store Procedure Question ?

From: Chow Hoi Ka, Eric <d951686_at_sftw.umac.mo>
Date: Sat, 19 Jun 1999 20:00:37 +0800
Message-ID: <376B8664.CC1D6D84@sftw.umac.mo>


Hi,

Would you please to teach me howw to use INSTR and SUBSTR ??

select INSTR(Name, 'O', 1, 1) from data;

the above query can work well in Oracle, right ?

But, how can I use INSTR and SUBSTR not in a query but in a Store Procdure ?

Such as,

declare

    tmpStr varchar2(50);
begin

    tmpStr := INSTR('Hello Oracle', 'ra', 1, 1); end;

Is it possible ? Please teach me how to implement INSTR and SUBSTR ????

Best regards,
Eric

--

     _                                                  _
    / ) |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ( \
   / /  |                                            |  \ \
 _( /_  | _   Chow Hoi Ka, Eric                    _ |  _) )_

(((\ \> |/ ) ( \| </ /)))
(\\\\ \_/ / E-Mail : d951686_at_sftw.umac.mo \ \_/ ////) \ / \ / \ _/ http://www.sftw.umac.mo/~d951686/ \_ / / / |____________________________________________| \ \ / / \ \
Received on Sat Jun 19 1999 - 07:00:37 CDT

Original text of this message

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