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

Home -> Community -> Usenet -> c.d.o.server -> Re: is it possible 2 use IN(..) instead of c1 like 'a%' or c1 like 'b%'

Re: is it possible 2 use IN(..) instead of c1 like 'a%' or c1 like 'b%'

From: Steffen Ramlow <s.ramlow_at_gmx.de>
Date: Tue, 5 Feb 2002 22:21:03 +0100
Message-ID: <a3pi74$19pist$1@ID-54600.news.dfncis.de>


isn't this the same as:

where c1 like 'a%' or c1 like 'b%'? why a union?

"damorgan" <dan.morgan_at_ci.seattle.wa.us> wrote in message news:3C5EEE15.1A17E780_at_ci.seattle.wa.us...
> No. Try UNION or UNION ALL as in:
>
> SELECT *
> FROM mytable
> WHERE c1 LIKE 'a%'
> UNION
> SELECT *
> FROM mytable
> WHERE c1 LIKE 'b%';
>
> Daniel Morgan
>
>
>
>
> Steffen Ramlow wrote:
>
> > c1 in('a%','b%') does not work
> >
> > any suggestions?
>
Received on Tue Feb 05 2002 - 15:21:03 CST

Original text of this message

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