DB2:如何插入带有换行符的 clob
我有一件简单的事情想做,但在尝试和完成时却非常令人沮丧。我只想获取一些像这样的值:
'a value with
line breaks'
并将其插入到 CLOB 字段中并在 DB2 中保留换行符。像这样的语句
insert into some_table (the_clob_field) VALUES('a value with
line breaks');
会导致插入带有换行符的值。
I have a simple thing which I want to do, yet is so frustrating in attempting and completing. I just want to take some value such as this:
'a value with
line breaks'
And insert it into a CLOB
field and retain the line breaks in DB2. Something like this statement
insert into some_table (the_clob_field) VALUES('a value with
line breaks');
causes a value with line breaks
to be inserted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
另一种选择是
Another alternative is
然后设置参数以指向您的文本对象。
Then set the parameter to point to your text object.