4
SQL Serverデータベース内でXMLのクエリを開始しました。私は最も基本的なクエリに問題があります。ここに簡単な例があります。説明を返すにはどうすればいいですか?以下のSELECT文は私が使っているものですが、何も返しません。SQL Server内のXMLクエリ
SELECT Incidents.IncidentXML.query
('data(/dsIncident/IncidentInformation/Description)') AS Description
FROM Incidents
これは、私が使用していますXMLファイルの抜粋です:
<dsIncident xmlns="http://tempuri.org/dsIncident.xsd">
<IncidentInformation>
<Description>This is the description.</Description>
<Country>Singapore</Country>
</IncidentInformation>
</dsIncident>