mysql删除数据左右空格

select trim(字段) from 表 删除左右空格

select ltrim(字段) from 表 删除左空格

select rtrim(字段) from 表 删除右空格

posted @ 2018-09-24 18:27  hank-li  阅读(2884)  评论(0编辑  收藏  举报