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: "equal" Vs. "Like"

Re: "equal" Vs. "Like"

From: Oneil <orego_at_gs.com>
Date: Mon, 02 Oct 2000 15:54:18 -0400
Message-ID: <39D8E7EA.43127559@gs.com>

Equals is faster as it does not do a pattern search

Eddie wrote:

> Hi,
> Which is faster:
>
> Select column_name1
> from table_name
> where column_name2 like 'Y%'
>
> or
>
> Select column_name1
> from table_name
> where column_name2 = 'Y'
>
> knowing that column_name2 is VARCHAR2(1) and contains either 'Y' or 'N'
>
> Thank you for your help,
>
> Eddie.
Received on Mon Oct 02 2000 - 14:54:18 CDT

Original text of this message

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