Orcale大字段截取查询,查询CLOB字段xml 某节点的值
2016/10
21
06:10
开发中用到不少CLOB字段 ,今天要查询导出数据,需截取CLOB大字段某节点的数据,找到了如下方法:
select xmltype(colName).extract(‘//nodeName/text()’).getstringval()
from tableName
加粗部分自行替换
开发中用到不少CLOB字段 ,今天要查询导出数据,需截取CLOB大字段某节点的数据,找到了如下方法:
select xmltype(colName).extract(‘//nodeName/text()’).getstringval()
from tableName
加粗部分自行替换