【发布时间】:2018-03-12 15:52:45
【问题描述】:
我有一个文本类型的列,我在其中存储了 xml,我想在我的查询中使用 jooq 对其进行格式化。示例:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
我的目标是从行首删除空格并删除换行符,结果我希望将文本作为单行:
<note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
如您所见,我删除了行和文本开头的所有换行符和空格。那么有没有办法使用 jooq 做到这一点?
【问题讨论】: