Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing one field with the numeric equivalent of a fie
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01305881
Message ID:
01384886
Vues:
30
>I am not sure you (or anybody else) notice the changes I made in ISNUMEIRC() function:
>From:
>ISNUMERIC(Fld1+'e1') = 1
>to
>ISNUMERIC(Fld1+'0e1') = 1
>
>That is a trick I learned from George Mastros. Unfortunately he only post in tek-tips forum.
>The goal here is that IF you have values as in the example above ISNUMERIC(Fld1+'0e1') returns:
>
>'1'   -> '1e1'   -> 1
>'1e1' -> '1e1e1' -> 0
>'1d12'-> '1d12e1'-> 0
>''    -> 'e1'    -> 1
>
>and you update only these records where you have a proper numeric values :-)

He now also posts on asp.net/forums so broader audience can benefit from his vast knowledge...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform