select trim(字段) from 表 删除左右空格 select ltrim(字段) from 表 删除左空格 select rtrim(字段) from 表 删除右空格 转载于:https://www.cnblogs.com/hankleo/p/9696174.html