4
SQL Server 데이터베이스에서 XML 쿼리를 막 시작했습니다. 가장 기본적인 쿼리에 문제가 있습니다. 다음은 간단한 예입니다. 설명을 어떻게 반환합니까? 아래 SELECT 문을 사용하고 있지만 그것은 아무것도 반환합니다.SQL Server 내에서의 XML 쿼리
이 내가 사용하고있는 XML 파일의 조각입니다SELECT Incidents.IncidentXML.query
('data(/dsIncident/IncidentInformation/Description)') AS Description
FROM Incidents
:
<dsIncident xmlns="http://tempuri.org/dsIncident.xsd">
<IncidentInformation>
<Description>This is the description.</Description>
<Country>Singapore</Country>
</IncidentInformation>
</dsIncident>