SQL Server:替换文本中的回车和换行符

 

--替换回车符

update master_location
SET street_number = REPLACE(street_number, CHAR(13), '')

--替换换行符

update master_location
SET street_number = REPLACE(street_number, CHAR(10), '')

 
 
 
好文要顶 关注我 收藏该文