這適用於Oracle標準11g,但不適用於Oracle Express,爲什麼?Oracle - 在Express版本上插入XMLTYPE
create table my_test (ident number(18,0), message xmltype);
/
create table my_test_h (hist_date timestamp, ident number(18,0), message xmltype);
/
create or replace trigger t1
AFTER INSERT ON my_test FOR EACH ROW
begin
insert into my_test_h
select systimestamp, :new.ident, :new.message from dual;
end;
/
insert into my_test test values (1, XMLTYPE('<a></a>'));
commit;
select * from my_test_h;
select * from my_test;
在Express版本它插入空XML到兩個表:-(
感謝您的幫助
感謝您的回答, 是否可以在Oracle XE上使用XML? –
如果你在尋找商業視角,如果oracle在一個免費版中提供了所有功能,那麼它對他們來說是一個巨大的損失,我不這麼認爲。 :-)))) – XING