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<>''

posted @ 2019-05-18 09:38  于天云  阅读(966)  评论(0编辑  收藏  举报