buenos dias , he estado buscando el error en este trigger y no he dado con el, de pronto alguien pueda ayudarme.
CREATE OR REPLACE TRIGGER depto_control
AFTER INSERT OR UPDATE OR DELETE ON depto
REFERENCING new as new old as old
FOR EACH ROW
DECLARE my.depto_audit%ROWTYPE;
BEGIN
IF inserting THEN
my.tipo_cambio := 'I';
ELSIF updating THEN
my.tipo_cambio := 'U';
ELSE
my.tipo_cambio := 'D';
END IF;
my.fecha_cambio := sysdate;
my.user_cambio := user;
CASE my.tipo_cambio
WHEN 'I' THEN
my.descript := :new.id;
ELSE
my.descript := :old.id;
END CASE;
insert INTO depto_audit values my;
END;
/
el serror es el siguiente
SQL> show errors trigger depto_control;
Errors for TRIGGER DEPTO_CONTROL:
LINE/COL ERROR
-------- -----------------------------------------------------------------
1/11 PLS-00103: Encountered the symbol "." when expecting one of the
following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
The symbol "<an identifier>" was substituted for "." to continue.
SQL>
gracias de antemano.