Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing one field with the numeric equivalent of a fie
Message
De
26/03/2008 16:37:25
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01305881
Message ID:
01305944
Vues:
16
>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 :-)

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform