Oracle 10g: Extract data (select) from XML (CLOB Type)

前端 未结 7 1333
[愿得一人]
[愿得一人] 2021-02-07 20:03

I\'m new in Oracle and I\'ve - maybe trivial - a problem in a select. (I\'m using Oracle 10g Express Edition).

I\'ve a DB with a field CLOB: mytab.xml This column have a

7条回答
  •  死守一世寂寞
    2021-02-07 20:22

    In case of :

    
    
         954 
         954 
         Fausto 
         Anonimo 
         040000000 
         040000001 
    
    

    Query :

    Select *
    from xmltable(xmlnamespaces(default 'http://namespaces.default'
                                  'http://namespaces.ns2' as "ns",
                           ), 
                    '/info'
                    passing xmltype.createxml(xml) 
                    columns id varchar2(10) path '/id',
                            idboss varchar2(500) path '/idboss',
                            etc....
    
                    ) nice_xml_table
    

提交回复
热议问题