UPDATE table SET `field`=REPLACE(`field`,' ','');UPDATE table SET `field`=REPLACE(REPLACE(REPLACE(REPLACE(`field`,CHAR(13),''),CHAR(10),''),CHAR(9),''),' ','');