sqlserver in bulk delete \ r \ n newline

You may paste from Excel to sqlserver when the bulk paste data into newline \ r \ n This time, when the query is invisible only to the field assigned to '' can be found in the wrap.

Batch Replace statement:

update [table]
SET [field name] = REPLACE ([field name], CHAR (13) + CHAR  (10), '')

 

among them:

--char(9) 水平制表符
--char(10)换行键
--char(13)回车键

 

 

 


----------------
Disclaimer: This article is the original article CSDN bloggers "zy0421911", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/zy0421911/article/details/53945120

Guess you like

Origin www.cnblogs.com/gzhbk/p/11598511.html
Recommended