我正处于可以获取xml节点的位置:
select xml_ from (...) a;
-------------
<something att1="abc" att2="123" att3="foo"/>
...
<something att1="def" att2="456" att3="bar"/>
-------------
和
select xpath('./@*', xml_) from (...) a;
-------------
{"abc", "123", "foo"}
...
{"def", "456", "bar"}
-------------
我想得到的是
select magic(xml_) from (...) a;
-------------
{"att1", "att2", "att3"}
...
{"att1", "att2", "att3"}
-------------
请帮忙。谢谢!!!
第二个代码段在这里运行 - &gt; http://sqlfiddle.com/#!17/9eecb/8570/0