首页 » Web开发 » 正文

[MySQL]删除字段中的回车符合换行符

update table set item=replace(replace(item,char(10),''),char(13),'') where condition;

table: 表名
item:字段名
condition:查询条件

发表评论