Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Whole Word SQL Search Trouble
Message
De
22/10/1997 14:56:44
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00056125
Message ID:
00056131
Vues:
29
>I'm trying to do an SQL that searches for whole words only, using the '%'...
>myfield LIKE "% FORD%" OR
>myfield LIKE "% FORD %" OR
>myfield LIKE "%FORD "...which correctly gets
>
>FORD MOTORS
>DIXON FORD
>BIG FORD CO
>
>but also BUFORD TIRES and CITY OF FORDHAM, which I don't want.
>
>Any ideas on how to do this? Or a better technique?

LEFT(myfield,4) = "FORD" OR ;
RIGHT(myfield,4) = "FORD" OR ;
" FORD "$myfield
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform