SQL 除去回车符 除去空格符

update table set fa=replace(fa,chr(13),'') ; --- 除去回车符 
update table set fa=replace(fa,' ','') ; --- 除去空格符
declare @str varchar(100)
set @str='dfd dfd df
dfdfd fdf
sdgdgd'
select replace(replace(@str,char(32),''),char(13)+char(10),'')
posted @ 2017-03-30 16:09  yufeiyunsui  阅读(195)  评论(0编辑  收藏  举报