Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/10/2013, 10:25
alemanad212
 
Fecha de Ingreso: octubre-2013
Mensajes: 6
Antigüedad: 10 años, 6 meses
Puntos: 0
problemas con un trigger

buenos días estoy creando un trigger en el manejador de base de datos navicat premium 10.0 y me está dando este error

sql error 1064 you have an error in your sql syntax check the manual that corresponds to your MySQL server version for the right syntax to use near


DECLARE @id INT, @nom1 VARCHAR(50), @ape1 VARCHAR(50)
DECLARE @nom2 VARCHAR(50), @ape2 VARCHAR(50)

SELECT @id=id, @nom1=hombre, @ape1=apellido FROM DELETED
SELECT @nom2=hombre, @ape2=apellido FROM INSERTED

INSERT INTO lio2 VALUES(@id, @nom1, @ape1, @nom2,@ape2, CURRENT_TIMESTAMP)
END