当我在sql中有多个节点时,如何从xml中检索数据

时间:2017-05-09 07:38:04

标签: sql xml

我想基于等于resourceID来检索数据 ,我已在下面写了查询

SELECT t.* FROM customerservice_store t WHERE 
existsNode(t.RESPONSE,'/customerDetailsResponse/resources/physicalDevice/@resourceId="bharath"','xmlns="http://sso.message.upc.com"') ='1';

SELECT t.* FROM customerservice_store t WHERE
existsNode(t.RESPONSE,'/customerDetailsResponse/resources/physicalDevice/@resourceId="bharath"','xmlns="http://sso.message.upc.com"') ='1';

0 个答案:

没有答案