Concatenating two Float columns and insert them to another Float column in SQL Server 2008 R2 -
I am dealing with a situation as mentioned in the question:
Give me two Float
column that I want to add:
(column 1 + '_' + column2)
and < Insert in Code> column3 .
I think the right question will be something like this:
Set as an updated table A.Column3 = select ((Column1 + '_' <+++
class = "post text" itemprop = "text"> If you want to be sure to avoid getting faucet, then you need to do something like this Use:
UPDATE dbo.YourTable SET Column3 = Convert (NVHAR (50), ISNUL (Column 1, N '')) + N'_ '+ Convert (NVHAR (50) , ISNLL (column2, n ''))
Assume that all three You are in the same table, otherwise you will need to use JOIN
in your UPDATE
Update: Converting the FLOAT
column to NVARCHAR
in the CONVERT
function
Comments
Post a Comment