Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Problem with INSTR and SUBSTR ???
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 _ | _) )_Received on Sat Jun 19 1999 - 04:16:55 CDT
(((\ \> |/ ) ( \| </ /)))
(\\\\ \_/ / E-Mail : d951686_at_sftw.umac.mo \ \_/ ////) \ / \ / \ _/ http://www.sftw.umac.mo/~d951686/ \_ / / / |____________________________________________| \ \ / / \ \