update 表名 set 字段 = trim(字段) ps:在查询中去掉回车的办法: select REPLACE(字段,'\r\n','') from 表 转载于:https://www.cnblogs.com/loveLearning/archive/2013/01/24/2874340.html