MySQL Forums
Forum List  »  Triggers

Help with simple triger
Posted by: Goran Mahovlic
Date: July 25, 2016 12:53AM

I have problem creating simple trigger that after updating first table update second

BEGIN
IF ESP8266_Alarm.senzor_servis = 1 THEN
UPDATE ESP8266_sensors_status SET Sensor1Status = 1 WHERE ESP8266_sensors_status.ID = 1;
END IF;
END

Options: ReplyQuote


Subject
Views
Written By
Posted
Help with simple triger
1722
July 25, 2016 12:53AM
637
July 25, 2016 11:00AM


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.