0
트리거를 사용하는 조건에 따라 전체 행을 업데이트하려고합니다. 작동하지 않는이 상태를 시도하고 있습니다.트리거를 사용하는 조건에 따라 전체 행을 업데이트하려면 어떻게합니까?
create or replace trigger cust_person_merge_view_t
instead of update on CUST_MDM_PERSON_MERGE
referencing new as new
begin
update mdm_person_tt
set :old.row = :new.row;
where MDM_PARTY_ID =(select mdm_party_id from CUST_MDM_PERSON_MERGE where mdm_entity_id=:old.MDM_ENTITY_ID);
if (sql%rowcount = 0)
then
raise_application_error
(-20001, 'Error updating the CUST_MDM_PERSON_MERGE view !!!');
end if;
end;
어떤 오류가 있습니까? 데이터베이스 버전은 무엇입니까? CUST_MDM_PERSON_MERGE와 mdm_person_tt는 동일한가요? 질문에 더 많은 관련 정보를 제공하십시오. – Ollie