Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Whole Word SQL Search Trouble
Message
 
À
24/10/1997 19:14:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00056125
Message ID:
00056696
Vues:
36
> myfield like "%FORD%" ;
> and not myfield like "%_FORD%" ;
> and not myfield like "%FORD_%"
>
>will allow FORD in any way except as a part of a word (no characters
>before it, and no characters after).
>
>It works (tested). Should be better optimizable than checking for left
>and right edges of the field.

Thanks, Dragan --
Someone said there are 3 ways to do everything in FP; I guess we now have three. I since have discovered that just leaving off the '%' on the left and right works also:
   where myfield like '%FORD ';
    or myfield like '% FORD %';
    or myfield like ' FORD%'
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform