Avatar of Rama Tito
Rama Tito
Flag for Malaysia asked on

Trigger function in MySQL

Trigger in MySQL. I am trying to create trigger in mysql  for every incoming data from remote device. Example i will receive data from remote device the Length and Width - value in integer datatype, therefore the trigger function will calculate the Area and Volume and update the row. I do manage to do this. The question is as follows : -

If no incoming data from remote device, i would like to trigger every 5 sec and calculate the Area and Volume with default value. If data come in from remote device then i have to reset the 5 sec from zero. As thought as a watch dog.
Databases

Avatar of undefined
Last Comment
Rama Tito

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
lcohan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Rama Tito

ASKER
Hi Expert,

In real situation, i am not calculation the area and volume. I am doing production monitoring which base on every seconds. Production Target compare with actual production will run simultaneously. Target = (current time - start time)/cycle time of production. Therefore every 5 sec i will update my database.
Rama Tito

ASKER
The links helped
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck