sql server 搜索替换空格,换行,回车之类的字符

/*char(10) -回车 ,char(13)-换行,‘ ’空格之类的
update bom_BillListTab set Bak = replace(Bak,CHAR(10),'')
where ParentProduct like '0621011000%' and Bak<>''

/*搜索字段中的其他字符的位置

select productid,ParentProduct,Bak,CHARINDEX(CHAR(10),bak)
from bom_BillListTab where ParentProduct like '0621011000%' and Bak<>''

猜你喜欢

转载自www.cnblogs.com/yc-shen/p/10884708.html
今日推荐