Subject Re: [ib-support] Re: containing, like, =
Author Helen Borrie
At 06:39 AM 04-09-01 +0000, Richard Saeger wrote:

>I think LIKE 'XY%' use indexes, but LIKE '%XY%' doesn't.
>

IMO, it's not worth doing a LIKE 'XY%' (no, I don't think LIKE ever uses an index).


STARTING WITH 'XY' will be much more effective because STARTING WITH uses an index unconditionally (if there is one, of course).

Helen


All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________