我SELECT query
在我的 RHEL 机器上运行 Oracle SQL 开发人员 IDE,如下所示
SELECT count(*)
From xyz
WHERE xmltype(xyz.xmlColumn).existsNode('//name=""') = 1;
如果我对单个记录执行上述查询,则可以正常工作。但是当我为整个表执行它时,它失败并出现错误:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00210: expected '<' instead of 'C'
Error at line 1
ORA-06512: at "SYS.XMLTYPE", line 272
ORA-06512: at line 1
31011. 00000 - "XML parsing failed"
*Cause: XML parser returned an error while trying to parse the document.
*Action: Check if the document to be parsed is valid.
上面的任何指示都会对我有所帮助。