|
Vern
(i may be wrong on this) but I thought if an index exists over the NAME field, and a ..where name like %JOHN% then sql will search all the entries in that index, which was still faster than reading that column in the file. jim ----- Original Message ----- From: "Elvis Budimlic" <ebudimlic@xxxxxxxxxxxxxxxxxxxxxxxxx> To: "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx> Sent: Friday, September 10, 2004 2:16 PM Subject: RE: fast search or scan for words in selected field
> On LIKE keyword, index cannot be used if wildcard is used at the beginning > of the value, i.e. %MARTIN or %MARTIN%. > But if it is at the end of the value, i.e. MARTIN%, then index can be used > by the query optimizer. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.