我有一個包含XML列的表中檢索值,我的數據看起來是這樣的:SQL查詢從XML列
<Entries>
<Entry Default="No" ValueId="1" Sequence="1" Deleted="Yes"><Undefined></Entry>
<Entry Default="No" ValueId="2" Sequence="1">Non-Purulent</Entry>
<Entry Default="No" ValueId="4" Sequence="2" Deleted="Yes">Sanguinous</Entry>
<Entry Default="No" ValueId="11" Sequence="2">Odor Present</Entry>
<Entry Default="No" ValueId="3" Sequence="3">Purulent</Entry>
<Entry Default="No" ValueId="5" Sequence="3" Deleted="Yes">Serosangiunous</Entry>
<Entry Default="No" ValueId="6" Sequence="4">Sanguineous</Entry>
<Entry Default="No" ValueId="7" Sequence="4" Deleted="Yes">Serosanguineous</Entry>
<Entry Default="No" ValueId="8" Sequence="5">Serous</Entry>
<Entry Default="No" ValueId="10" Sequence="6">Sero-sanguineous</Entry>
<Entry Default="No" ValueId="9" Sequence="7">Other</Entry>
</Entries>
我想要檢索不具有已刪除=「值是「屬性。我對使用XML查詢非常陌生,所以我會很感激所有我能得到的幫助。
非常感謝marc_s。是的,我應該在這裏標記正確的RDBMS。我會記下這一點。是的,它是SQL服務器 –