Chiappa, bom dia!! 

 Muito obrigado pelo retorno!
 

 Conforme orientado, ajustei a trigger, porém continua sem funcionar. Abaixo as 
alterações.
 

 Também estou enviando uma imagem para demonstrar meu cenário.


 chiappa Pictures, chiappa Images, chiappa Photos, chiappa Videos - Image - 
TinyPic - Free Image Hosting, Photo Sharing & Video Hosting 
http://tinypic.com/r/241rnkl/8 
 
 http://tinypic.com/r/241rnkl/8 
 
 chiappa Pictures, chiappa Images, chiappa Photos, c... 
http://tinypic.com/r/241rnkl/8 Tinypic™ is a photo and video sharing service 
that allows you to easily upload, link and share your images and videos on 
MySpace®, eBay®, blogs and messag...
 
 
 
 Visualizar em tinypic.com http://tinypic.com/r/241rnkl/8 
 Visualização pelo Yahoo 
 
 
  


 

 

 --
 

 create or replace TRIGGER TR_EST_BLOQUEIARATEIO
 after insert or update on est_cadmaterial
 for each row when (new.gerarateiomat = 'S')
 BEGIN
     if updating then
         UPDATE est_itensdeestoque SET bloqueiamovtorateio = 'S' WHERE 
CODIGOMATINT = :old.codigomatint;
     else 
         UPDATE est_itensdeestoque SET bloqueiamovtorateio = 'S' WHERE 
CODIGOMATINT = :new.codigomatint;
     end if;
 END;
 


 --
 

 

Responder a