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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Conditional AND, Conditional OR

Re: Conditional AND, Conditional OR

From: Pierre Charpenay <pcharpenay_at_unilog.fr>
Date: 2000/07/12
Message-ID: <396C58BE.9070ABA0@unilog.fr>#1/1

Of course you can !

But, if have something like that :

select ...
where col1 = '...'
 and (col2 = 'v1' or col2='v2' or col2='v3')

you should better write :

select ...
where col1 = '...'
 and col2 in ('v1', 'v2', 'v3')

Bye.

Pablo Silva a écrit :
>
> Hi!
>
> I get a question about the Boolean Operators...
>
> In Transac SQL (Sybase) it's possible build conditional
> AND's and OR's by means of the use of parentisis, but in oracle
> it is possible to do the same?
>
> Thank's in Advance...
>
> Pablo
>
> -----------------------------------------------------------
>
> Got questions? Get answers over the phone at Keen.com.
> Up to 100 minutes free!
> http://www.keen.com
 

-- 
 Pierre CHARPENAY
Received on Wed Jul 12 2000 - 00:00:00 CDT

Original text of this message

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