Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LIKE ('4*-8002') works, LIKE('4??-8002') doesn't
Message
De
04/11/1999 20:31:33
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
LIKE ('4*-8002') works, LIKE('4??-8002') doesn't
Divers
Thread ID:
00287283
Message ID:
00287283
Vues:
48
Anybody know any gotcha's with LIKE? Our fund codes are in the form: '123-4567'. I am using SELECT against Fox tables.

This evaluates .T. against records in the table in the watch window as expected:
LIKE('4??-8002', ALLT(PyrlDist.Fund))

but does not work within a SELECT:
SELECT SUM(IIF(LIKE('4??-8002', ALLT(PyrlDist.Fund)), 1, 0)) AS ...

But this SELECTs data correctly:
SELECT SUM(IIF(LIKE('4*-8002', ALLT(PyrlDist.Fund)), 1, 0)) AS ...

So I can get my data, but I'd like to know why the ??'s didn't work. Any ideas?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform