Tema: Trigger
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/10/2009, 16:03
astridalmighty
 
Fecha de Ingreso: octubre-2009
Mensajes: 1
Antigüedad: 14 años, 6 meses
Puntos: 0
Trigger

haber si alguien me puede ayudar.

Tengo una tabla y trae dos llaves foraneas una se llama construcción y la otra lote, pero si es construccion no es lote. no se como hacer el trigger correctamente

CREATE TRIGGER avaluo_check BEFORE INSERT OR UPDATE OF construccion, lote ON Avaluo FOR EACH ROW DECLARE construccion NUMBER lote NUMBER BEGIN SELECT construccion, lote FROM Avaluo WHERE construccion <> lote END;