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: Pattern maching question

Re: Pattern maching question

From: Inna Zelmanova <izelmanova_at_yahoo.com>
Date: Mon, 18 Sep 2000 18:16:41 -0700 (PDT)
Message-Id: <10623.117307@fatcity.com>


Hi, I think you can try this:

select contact_name from contact
where substr(contact_name,1,1) in
('0','1','2','3','4','5','6','7','8','9');

inna
--- Glenn Travis <Glenn.Travis_at_wcom.com> wrote:
> How can I get all the contacts which start with
> numbers?
> PLEASE NOTE: contact_name is a character field.
>
> select contact_name from contact
> where contact_name like '[0-9]%'
>
> does not work (like other dbms...)
>
> My workaround is;
>
> select contact_name from contact
> where contact_name < 'A'
>
> but I want to know the proper syntax for the first
> query.
> --
> Author: Glenn Travis
> INET: Glenn.Travis_at_wcom.com
>
> Fat City Network Services -- (858) 538-5051 FAX:
> (858) 538-5051
> San Diego, California -- Public Internet
> access / Mailing Lists
>



> 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).


Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger. Received on Mon Sep 18 2000 - 20:16:41 CDT

Original text of this message

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