Convert the new row to XML inside a Oracle Trigger
问题 Hi I am trying to create a log of changes in a table by using oracle triggers The log table consist of the ,time of action ,tablename,actiontype and xmldata (clob) Iam trying to convert the new row to xml and save it as xmldata create or replace TRIGGER EVAL_CHANGE_TriggerActual_DYNAMIC AFTER INSERT OR UPDATE OR DELETE ON PROJ_TEST REFERENCING NEW AS new OLD AS old FOR EACH ROW DECLARE log_action varchar(10); p_xmldata XMLtype; P_NEWROWDATA clob; p_newrowxml clob; BEGIN select rtrim