Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to search for records containing the search string?
Message
De
17/03/2004 06:19:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
17/03/2004 03:37:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00886980
Message ID:
00887009
Vues:
13
>how to search for records containing the search string?
>
>say, my user entered "ELL", i want to be able to search into my table all records that contains the word "ELL" like "HELLO", "BELL", "SELLER"
>
>
select * from where like="%ELL%"
>
>can i do this using locate? i want to search in the same table, not to put the result in a table or a cursor.
>
>any help pls?
SET FILTER TO "ELL" $ MyField

or:

SET FILTER TO "ELL" $ upper(MyField)
This can be slow, since no indexes can be used to optimize this filter.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform