Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with wildcards.
Message
De
13/07/2001 06:53:23
 
 
À
13/07/2001 06:38:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00530137
Message ID:
00530145
Vues:
24
>>How do you do a select with a wild card on a VFP table?
>>
>>For example
>>select * from mytable where the second character=2
>>
>>
>>i.e. these match
>>_2
>>123289932
>>
>>these don't
>>143343
>>141414
>>
>>To avoid code modification I would prefer to use one of the operators.
>>= or $ or ==
>>
>>thanks
>
>select * from mytable where myfield like '_2%'
>
>also like() is VFP function that uses ?,* as wildcard chars.
>Cetin

Note that the parameter order is swapped for like() - ie the equivalent query is

select * from mytable where like( '?2*', myfield )
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform