字符前的空格,用ltrim(string)
字符后的空格,用rtrim(string)
字符中的空格,用replace(string, ' ', ' ')
例
update qx_users set `NAME`=rtrim(NAME)update qx_users set `NAME`=ltrim(NAME)update qx_users set NAME=replace(NAME,' ','')