Hi,
I need to create a trigger for when I insert data in the first table to be able to insert in the second some data related to the first one.
CREATE TRIGGER test1
ON Telegramas
BEFORE INSERT
AS
BEGIN
INSERT INTO Dispositivos SET Dispositivos.GrupoOrigen = Telegramas.GrupoOrigen;
END;
I created that but there is a syntax error that I can not see. need help? or another way to make this relationship easier?
thanks