我试图插入一个xmltype的东西,我读了oracle文档,它说我应该使用updateXML或insertChildXML,但是编译器说,必须声明updateXML
到处搜索,但我找不到任何缺少函数的引用 我正在使用11g,作为必须,这是一个很长的任务的开始,如果没有修改xmltype的函数我就做不了多少
帮助,如何解决编译错误?
CREATE OR REPLACE PROCEDURE comentar_evento
(
id_usuario IN NUMBER,
id_lugar IN NUMBER,
nombre_evento IN VARCHAR2,
comentario IN VARCHAR2
)
IS
otag VARCHAR2(50);
ctag VARCHAR2(50);
xmlPath VARCHAR2(50);
xpEnd VARCHAR2(50);
ag XMLType;
BEGIN
otag := '<comentario>';
ctag := '</comentario>';
xmlPath := '/agenda/evento/[nombre_evento="';
xpEnd := '"]/comentarios';
xmlPath := xmlPath || nombre_evento || xpEnd;
SELECT agenda INTO ag FROM usuario WHERE id = id_usuario;
insertChildXML(ag, xmlPath, 'comentario', otag || comentario || ctag);
END;
/
http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb04cre.htm#ADXDB0400
答案 0 :(得分:0)
再次查看文档。 Doc读作&#34; INSERTCHILDXML SQL函数&#34;。
57 proc contents data=x out=myvars(keep=name format) noprint;
58 run;
NOTE: The data set WORK.MYVARS has 1 observations and 2 variables.
59
60 data _null_;
61 set myvars;
62 put _all_;
63 run;
NAME=Var1 FORMAT=NOW _ERROR_=0 _N_=1
NOTE: There were 1 observations read from the data set WORK.MYVARS.