SELECT sysxml.XPathValue(O.CAST(xmlOrder VARCHAR(1000) CHARACTER SET UNICODE), '//ORDER/PO_NUMBER/*') AS PO_Number,
sysxml.XPathValue(O.CAST(xmlOrder VARCHAR(1000) CHARACTER SET UNICODE), '//ORDER/DATE/*') AS theDate
FROM COMMON.OrderLog O
WHERE sysxml.XPathValue(O.CAST(xmlOrder VARCHAR(1000) CHARACTER SET UNICODE), '//ORDER/BILLTO/*') = 'Mike';
答案 0 :(得分:1)
CAST
不属于O
,xmlOrder
可能属于。{。}
所以不要这样:
O.CAST(xmlOrder ...
您可能需要在所有三行中执行此操作:
CAST(O.xmlOrder ...