Ver Mensaje Individual
  #1  
Antiguo 29-05-2008
Paulao Paulao is offline
Miembro
 
Registrado: sep 2003
Ubicación: Rua D 31 Casa 1 - Inhoaíba - Rio de Janeiro - RJ - Brasil
Posts: 637
Reputación: 21
Paulao Va por buen camino
Sobre el mensaje de error "during execution of trigger"

Porque este triger no funciona. Hay errores.

Código SQL [-]
CREATE OR REPLACE TRIGGER ATUALIZA_PROD_PRECO
AFTER UPDATE OR INSERT ON TB_PC_PRODUTO
FOR EACH ROW
DECLARE
 COD INTEGER;
BEGIN
  UPDATE TB_PC_PRODUTO SET VALOR = 5.98;
END;
/

Este es el error.

Código SQL [-]
ORA-04091: table DESENVOLVIMENTO.TB_PC_PRODUTO is mutating, trigger/function may not see it
ORA-06512: at "DESENVOLVIMENTO.ATUALIZA_PROD_PRECO", line 4
ORA-04088: error during execution of trigger 'DESENVOLVIMENTO.ATUALIZA_PROD_PRECO'
ORA-06512: at "DESENVOLVIMENTO.ATUALIZA_PROD", line 24
ORA-06512: at line 1
Responder Con Cita