Skip to content
Advertisement

Update values in column

I have following SQL-Table:

A   B  C   D
"1" 2  3  "4" 
"2" 4  4  "5"
"4" 1  6  "9"

I would like to remove the “”

So my result should look like this:

A  B  C  D
1  2  3  4
2  4  4  5
4  1  6  9

Advertisement

Answer

It’s just a simple UPDATE with REPLACE() function as

UPDATE YourTable
SET A = REPLACE(A, '"', ''),
    B = REPLACE(B, '"', ''),
    C = REPLACE(C, '"', ''),
    D = REPLACE(D, '"', '')
--Where conditions if needed
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement