Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a numeric field with a character field
Message
From
29/10/2014 10:18:16
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Updating a numeric field with a character field
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01610090
Message ID:
01610090
Views:
37
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
Next
Reply
Map
View

Click here to load this message in the networking platform