Moving XML over a DBLink

后端 未结 5 1930
不知归路
不知归路 2021-01-22 17:24

I am trying to move some data over a dblink and one of the columns is an XMLType column. The code looks like this:

begin
    delete from some_schema.some_remote_         


        
5条回答
  •  Happy的楠姐
    2021-01-22 18:10

    I was facing the same issue with an heterogeneous DB link to SQL server.

    Ended up using xmltype.getStringVal() to insert in a VARCHAR column on SQL Server side as the data was under 4000 characters.

    There is also xmltype.getClobVal() if over 4000 characters but I haven't tested it.

提交回复
热议问题