Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating a numeric field with a character field
Message
De
29/10/2014 10:18:16
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Updating a numeric field with a character field
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01610090
Message ID:
01610090
Vues:
36
I have created a numeric field which I would like to replace with the value of a character field. The character field should have been initially created as numeric and contains only numeric values.

So, basically, I need something like this:
UPDATE Client SET Amount2=Amount
But, as is, it will not work as a conversion has to be done. It is that part that I cannot find the proper syntax.

Amount2 is used as a temporary place holder. Once the update completed, the Amount field will go and Amount2 will be renamed Amount.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform