Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试通过 c# 代码将字符串插入到 oracle 中,但是当我将其返回到我的代码时,它没有换行和回车,也没有更多特殊字符(如!();&)我希望它在发送时返回. 我尝试将 '\r\n' 替换为 char(10) char(13) ,但它没有用。谢谢!
您确实收到了发送的数据。
\n只是换行的 Visual Studio 表示。这就是调试器/IDE 显示换行符的方式。
\n
所以...
\r
因此"Hello\r\nGood bye"与 相同"Hello" + (char)10 + (char)13 + "Good bye"。等等
"Hello\r\nGood bye"
"Hello" + (char)10 + (char)13 + "Good bye"