I need help in updating records in a table. Currently, I have a %
value which I would like to remove from all the records. I have over 4000 records in this table.
Date Server CPU MEM DRVC
------------------------------------
01/10/10 DRV01 90% 80% 40%
I want to have the data values remain unchanged but "%" sign to be removed.
Date Server CPU MEM DRVC
------------------------------------
01/10/10 DRV01 90 80 40
In my case I need to update three column records
CPU
MEM
DRVC
declare @x = CPU
declare @y = MEM
declare @z = DRVC
SELECT REPLACE(@x, '%', '') from table01;
SELECT REPLACE(@y, '%', '') from table01;
SELECT REPLACE(@z, '%', '') from table01;