Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: select strings with '_' in it

RE: select strings with '_' in it

From: Martin, Alan (Contractor) (DLIS) <Alan.S.Martin_at_dla.mil>
Date: Tue, 19 Aug 2003 14:39:27 -0800
Message-ID: <F001.005CB984.20030819143927@fatcity.com>


Remember, '_' matches any 1 character, so change what you're looking for. Try:
Select col1 from table
where translate(col1,'_','#') like 'v#lan%' /

Regards,
Alan Martin
Defense Logistics Info Service
Battle Creek, MI

-----Original Message-----
Sent: Tuesday, August 19, 2003 6:19 PM
To: Multiple recipients of list ORACLE-L

Hello,

I have this data 'v_lan' and also 'vclan'. I would like to select 'v_lan' but not 'vclan'. Is it possible to do that?

I tried
set escape on
select col1 from table where col1 like 'v\_lan' /

but it doesn't work.

thank you,

benny



Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Benny Pei
  INET: bplegend_at_yahoo.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Martin, Alan (Contractor) (DLIS)   INET: Alan.S.Martin_at_dla.mil

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Aug 19 2003 - 17:39:27 CDT

Original text of this message

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