用REPLACE函数,把空格替换成 ''。例:去除 表table 中 col 列的空字符去除空格符:update table set col = REPLACE(col,' ','')还有tab制表符(即char(9)),显示效果类似空格。去除制表符:update table set col = REPLACE(col,CHAR(9),'')