首页 > 解决方案 > cx_Oracle:XML 和 LONG 数据类型 - 在 cx_Oracle 中具有相同的定义

问题描述

在处理 Oracle 数据时,为了读取 XML 类型 - 我们在 Oracle 中使用 GetClobVal() 函数。对于 LONG 数据类型 - 不需要。问题是,在 python 的 cx_Oracle 模块中,两者都定义为 DB_TYPE_LONG。这可以防止自动读取带/不带 GetClobVal 的 LONG 和 XML 数据。python/cx_Oracle 中是否有区分 LONG 和 XML 的方法?

标签: python-3.xcx-oracle

解决方案


推荐阅读