I have a table that I want : when the table has been updated, 2 fields of that (title and description) change and take value from another table
I have a table t开发者_StackOverflow社区hat stores parent and child records in it. I was trying to create a trigger that would delete all child records when the parent is deleted:
I ran into a problem as I tried to create two TIMESTAMP columns in my database. One called created and one called updated. I figured it would be easy to set the default value of both to CURRENT_TIMEST
I want to set up a trigger so that if on an update the prediction field is = 3 then the trigger changes the value to 4 and saves it in the database. The trigger is below.