MySQL Forums
Forum List  »  Triggers

Re: Simple Trigger asistance!
Posted by: Max Molina
Date: August 25, 2016 07:22PM

fixed some errors. it still says syntax failed>


BEGIN
IF NEW.IMHQ_solicitada = 'Si' THEN
INSERT INTO 'imhq' SET INSERT INTO imhq SET RECORD_ID = NEW.RECORD_ID, Tipo_de_Estudio = NEW.Tipo_de_Estudio, Año = NEW.Año, Codigo_Interno = NEW.Codigo_Interno,Edad = NEW.Edad, Sexo = NEW.Sexo,Iniciales_del_Px= NEW.Iniciales_del_Px;
END IF;
END;


the delimiter thing is set by phpMyAdmin

Options: ReplyQuote


Subject
Views
Written By
Posted
1448
August 25, 2016 07:19PM
Re: Simple Trigger asistance!
806
August 25, 2016 07:22PM
717
August 25, 2016 07:24PM
673
August 26, 2016 09:06AM
659
August 26, 2016 02:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.