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 -> a substring question

a substring question

From: sanjay rallapally <c696346_at_showme.missouri.edu>
Date: 1997/05/26
Message-ID: <Pine.A41.3.95q.970526141407.417448A-100000@sp2n09.missouri.edu>#1/1

hello again,

how do i search for a string in a larger string ? please don't tell me to use substr 'cuz i tried that eg:
  224, Lewis Hall

User input:
 lewis

SQL statement:
 select emp_name from employees

      where substr( upper(emp_name),1) LIKE upper(v_address);

where v_address contains lewis
Can anyone point out my mistake and/or a better way to search for a string( in this case 'lewis') in a larger string( 224, Lewis Hall) ?

Sanjay Rallapally
c696346_at_showme.missouri.edu
1205, Univ. Ave, #236,
Columbia, MO65201
(573)874-8720 Received on Mon May 26 1997 - 00:00:00 CDT

Original text of this message

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