--1、创建xml表
Create TABLE testxml2(
id NUMBER,
data XMLTYPE
);

--2、插入数据
--1)创建目录
CREATE or replace DIRECTORY tmpdir AS 'D:\';

--2)使用excel导出xml表,放在D盘下,命名为11.xml

--3)第一种:插入数据
insert into testxml(id,data)
values(6,xmltype(bfilename('TMPDIR','11.xml'),nls_charset_id('AL32UTF8')))

--3)第二种:插入普通值
insert into testxml values (666,sys.xmlType.createXML('<name><a >abc</a></name>') );

相关文章:

  • 2021-11-27
  • 2021-06-30
  • 2021-11-22
  • 2022-01-14
  • 2022-12-23
  • 2021-10-16
  • 2021-09-28
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2021-08-08
  • 2022-02-27
  • 2021-11-21
  • 2021-11-27
  • 2021-04-27
  • 2021-12-01
相关资源
相似解决方案