Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String searches SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
String searches SQL
Divers
Thread ID:
00105029
Message ID:
00105029
Vues:
102
what is the fastest method to search for strings contained within a field using SQL? For example, I currently use:

(SIMPLE EXAMPLE)

ownername field might contain -> HAROLD D. SMITHE
I want every record that contains the name "SMITH" in table1

I am doing this:

SELECT OWNERNAME from table1 ;
WHERE ownername like '%SMITH%'

I do have and index on the ownername field.

This takes quite sometime to get resultant data back on my 70,000 record table. Is there a more optimized way of doing string searches than the way I'm doing it?



Any suggestions appreciated.

Thanks

john.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform