且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 jdbc 从 db2 读取 xml 列

更新时间:2023-11-06 15:26:40

XML 行被实现为大对象.尝试 rs.getClob(i),然后调用 getSubstring 以从中检索 xml.这是一个例子.

XML rows are implemented as large objects. Try rs.getClob(i), then call getSubstring to retrieve the xml from it. Here's an example.