如何在SQL server的JSON_VALUE输出中保留换行符。) ='{"name":"jonh","address":"100 st \n city ,country"}'
SELECT JSON_VALUE(@jsonString,'$.address') 输出为"100 st city ,country“ 但我希望输出为"100 st \n city ,
我得到了一个有很多换行符的字符串。它们有两种类型。\n和\r\n我想保留\r\n换行符,但我想去掉\n换行符。有什么简单的方法可以做到这一点吗?This is a \ntext there should \nonly be one line break\r\n";
这里的输出将是newtext = "This is a text there should only be