Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with wildcards.
Message
De
13/07/2001 06:57:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/07/2001 06:53:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00530137
Message ID:
00530148
Vues:
20
>>>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 )

Yes but I didn't say anything on parameter order :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform