去除Sql Server中回车换行符

这里使用了,sql 函数。replace(string_expression , string_pattern , string_replacement),

第一个参数:要查找的字段。

第二个参数:要查找的字符。

第三个参数:要替换成的字符。

char(10)换行键
char(13)回车键

 REPLACE('需要替换的字符串', CHAR(13) + CHAR(10),'')
原文地址:https://www.cnblogs.com/caoyc/p/4228605.html