Oracle 的 XMLType 支持 JDBC 批量更新吗?

发布于 2024-10-05 10:04:18 字数 73 浏览 0 评论 0原文

Oracle 的 JDBC 实现是否支持 XMLType 批量更新(通过PreparedStatement.addBatch())?

Does Oracle's JDBC implementation support XMLType batch updates (via PreparedStatement.addBatch())?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

压抑⊿情绪 2024-10-12 10:04:18

经过大量研究后,Oracle JDBC 实现的一个已知限制似乎是它不支持“流类型”作为绑定变量(XMLType 是流类型)。

根据他们自己的文档

Oracle 标准更新批处理的实现不支持将流类型作为绑定值。 (Oracle 更新批处理也是如此。)任何使用流类型的尝试都将导致异常。

After a lot of research, it appears like a known limitation of Oracle's JDBC implementation is that it does not support "stream types" as bind variables (XMLType being a stream type).

According to their own documentation:

Oracle's implementation of standard update batching does not support stream types as bind values. (This is also true of Oracle update batching.) Any attempt to use stream types will result in an exception.

随心而道 2024-10-12 10:04:18

我认为 Oracle 类型无法判断它们是如何被调用的,所以答案是“是”。

真正的问题是:“您认为批处理会引入实时处理不会引入的什么问题?”

I don't think Oracle types can tell how they're invoked, so the answer would be "yes".

The real question is: "What problem do you think that batch processing will introduce that real-time processing does not?"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文