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: damorgan <dan.morgan_at_ci.seattle.wa.us>
Date: Mon, 04 Feb 2002 20:24:53 GMT
Message-ID: <3C5EEE15.1A17E780@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 Mon Feb 04 2002 - 14:24:53 CST

Original text of this message

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