Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 DB2 中,我们如何编写查询以从 clob 数据类型列中获取值
对于 sql/pl,您可以从与其他类型相同的数据库中选择 clob 数据,但如果您使用 jdbc,我应该使用 byte[] 来获取 Clob 数据。
不确定这是否对您的情况有所帮助,但我们在我的公司遇到了类似的情况。对于我们来说,我们能够使用 C#/.NET 和 IBM iSeries 数据提供程序将这些值作为普通字符串读出。我们想从 CLOB 中获取的数据只是简单的文本,它允许这个过程工作。