Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index for Numerics only from a character field
Message
 
 
À
04/03/2002 10:12:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00627800
Message ID:
00627802
Vues:
11
>Hi,
>
>Is it possible to create a index of Numeric Digits only from the Character field (e.g. value in the filed is '123 Any Street Suite 456' and Index should have value only '123456')? If possible, please help.
>
>Thank you very much for any help.
>
>Bal Singh
INDEX ON PADR(Chrtran(myfield, Chrtran(myfield, "0123456789", ""), ""), 20)
You've to pad result to the max possible number of digits in the field otherwise it could be truncated.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform