select extractValue(ed.info_id, '/Root/ExpandProfile/PhoneNumber') as phone,
extractValue(ed.info_id, '/Root/ExpandProfile/400ServicePhone') as servicephone,
extractValue(ed.info_id, '/Root/ExpandProfile/FaxNumber') as fax,
extractValue(ed.info_id, '/Root/ExpandProfile/MarketingQQ') as qq,
extractValue(ed.info_id, '/Root/ExpandProfile/WechatNumber') as wechat,
extractValue(ed.info_id, '/Root/ExpandProfile/Mail') as mail
from entity_detail ed
where ed.info_rel_type = ''
and ed.info_rel_id = ''
这是我的sql语句,粗略一看没有什么大问题
排查方法,中间的 extractValue函数一句一句注释掉运行
最后的结果是,oracle,xml标签里面不能存在数字,否则会报错。
sql修改过后就可以正常运行了
select extractValue(ed.info_id, '/Root/ExpandProfile/PhoneNumber') as phone,
extractValue(ed.info_id, '/Root/ExpandProfile/ServicePhone') as servicephone,
extractValue(ed.info_id, '/Root/ExpandProfile/FaxNumber') as fax,
extractValue(ed.info_id, '/Root/ExpandProfile/MarketingQQ') as qq,
extractValue(ed.info_id, '/Root/ExpandProfile/WechatNumber') as wechat,
extractValue(ed.info_id, '/Root/ExpandProfile/Mail') as mail
from entity_detail ed
where ed.info_rel_type = ''
and ed.info_rel_id = ''