tags:

views:

32

answers:

2

hi there,

i have a table that has

'number'

1234
12 34
1 2 34
1 2 3 4
ect...

so, im wondering how can i write a query that will remove all spaces?

something like

update `table` set number = REPLACE( ' ', '', (select 'number' from `table`));  

is there anything that will do this?

+2  A: 
UPDATE table SET number = REPLACE(number, ' ', '')
reko_t
+2  A: 

Close. I believe you could write something like this:

update `table` set number = REPLACE( number, ' ', '');
John P