[SQL ] XML 用node name筛选?

楼主: YiMMiY (YiMMiY)   2018-02-23 10:37:08
MS SQL - 2012
各位版友们好
手边有一个XML,如下
@xml = '
<row id='1'>
<AAA>zxc</AAA>
<BBB>asd</BBB>
<CCC>qwe</CCC>
</row>
<row id='2'>
<AAA>vbn</AAA>
<BBB>fgh</BBB>
<CCC>rty</CCC>
<DDD>jkl</DDD>
</row>
<row id='3'>
<AAA>sdf</AAA>
<DDD>xcv</DDD>
</row>
'
手边还有一个TABLE,如下
Tb_DEF
COLA ...

Links booklink

Contact Us: admin [ a t ] ucptt.com