在MySQL Workbench问题中保存JSON
我有以下字符串:
"test\n\ntest\n\ntest3"
该字符串是我将其插入MySQL Workbench的表中的JSON值的一部分。插入数据后,当我检查表中的数据时,字符串将转换为以下内容:
"test
test
test3"
然后,这使我的JSON无效。我希望MySQL Workbench只能按照我发送的数据准确保留数据,而不是将“ \ n”转换为表中的新行。
有没有办法告诉MySQL Workbench停止格式化数据?
I have the following string:
"test\n\ntest\n\ntest3"
The string is part of a JSON value that I am inserting into a table in MySQL Workbench. After the data is inserted the string gets converted into the following when I check the data in the table:
"test
test
test3"
Which then makes my JSON invalid. I want MySQL Workbench to just keep the data exactly as I send it, instead of converting the "\n" into new lines in the table.
Is there some way to tell MySQL Workbench to stop formatting the data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论