制表符 CHAR(9)
换行符 CHAR(10)
回车 CHAR(13)
查询A表中包含回车符字段B的记录
select * from A where charindex(char(13),B)>0
在表A中把包含回车符的字段B的记录的回车符去掉
update A set P_Code = replace(p_Code,char(13),'') where id in (select id from A a where charindex(char(13),B)>0)
制表符 CHAR(9)
换行符 CHAR(10)
回车 CHAR(13)
查询A表中包含回车符字段B的记录
select * from A where charindex(char(13),B)>0
在表A中把包含回车符的字段B的记录的回车符去掉
update A set P_Code = replace(p_Code,char(13),'') where id in (select id from A a where charindex(char(13),B)>0)