创建一个xml表
create table contact of xmltype;
插入一段xml数据
insert into contact values(XMLType('
<contact id="1">
<category>customer</category>
<first_name>John</first_name>
<last_name>Smith</last_name>
<email>john.smith@hfarm.com</email>
</contact>'));
查询first_name
select XMLQuery('/contact/first_name' PASSING c.object_value RETURNING CONTENT) result from contact c;