Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with CharTran()
Message
De
27/03/2001 18:57:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SQL Select with CharTran()
Divers
Thread ID:
00489235
Message ID:
00489235
Vues:
84
Hi. VFP6 - sp5. I have a database and the end-users have put the dashes in different places in the data (over the years). Example: 303-00, 30-300,3-0300. I want to use chrtran in my sql select, but the following doesn't seem to work:
SELE * FROM mytable WHERE chrtran(myfield,'-','') = chrtran(This.Value,'-','')

The reason for the "trash" data is because several of our vendors have changed the formatting of their item numbers as they have migrated to new computers.

Thanks, Randy
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform