DECLARE @x xml
SET @x = '<?xml version="1.0" encoding="utf-8"?>
<getDealDetail>
<errorCode>0</errorCode>
<errorMessage></errorMessage>
<buyerName></buyerName>
<buyerUin>284073437</buyerUin>
<buyerRemark></buyerRemark>
</getDealDetail>'
SELECT @x.query('/getDealDetail/buyerUin')
SQL查询xml内容
2023-10-11 13:32:28