sql server查询结果复制出来,没有换行(存进去的数据是换行的)

https://*.com/questions/53115490/how-to-correctly-insert-newline-in-nvarchar

The problem is your setting on SSMS, not that the data doesn't have a line break.

Go to: Tools -> Options -> Query Results -> SQL Server -> Results to Grid -> Retain CR/LF on copy or Save and make sure the option is ticked.

 

上一篇:hdu 5511 Minimum Cut-Cut——分类讨论思想+线段树合并


下一篇:UOJ 418 【集训队作业2018】三角形——思路+线段树合并