与
ESC
输入关键词搜索文章

MySQL 去除字段中的回车符和换行

全文约 64 字预计阅读 1 分钟
char(10): 换行符 char(13): 回车符 1 去掉回车+换行 update tablename set field = replace(field , char(13)+char(10), ''); update tablename set field = replace(replace(field, char(10), ”), char(13), ”); 2去掉回车 update tablename set field = replace(field, char(13), ''); 3去掉换行 update tablename set field = replace(field, char(10), '');  
MySQL 去除字段中的回车符和换行
分享

发表评论

评论 0 条

暂无评论,来说点什么吧。