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 -> Problem with INSTR and SUBSTR ???

Problem with INSTR and SUBSTR ???

From: Chow Hoi Ka, Eric <d951686_at_sftw.umac.mo>
Date: Sat, 19 Jun 1999 17:16:55 +0800
Message-ID: <376B6007.8327B06B@sftw.umac.mo>


Hello,

SELECT lastname, INSTR(lastname, 'O', 2, 1) from data;

The above query can work well.

But, is it possible to use INSTR not with a query ?

For instance,

declare

    str0 varchar2(30);
begin

    str0 := INSTR('abcdefghi', 'cd', 1, 1); end;

I tried the above statements, it seems that INSTR in that situation can't work.

So, if I want to use INSTR or SUBSTR in a store procedure but not in a query,
how to do it ?

Would you please to give me a simple example ???

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 - 04:16:55 CDT

Original text of this message

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