I need help with on update
in MySQL.
Currently I need to set up a created
and updated
row in a table documents
that has keywords
related by a Foreign Key
.
So I create a trigger for the keywords to update the updated
time of the related document and I need to create another for Documents
table.
The question is if I can use on update
instead of a trigger.
I've tried searching about on update
statement to see if it refers to the whole record being updated, in how many columns can it be used, etc, but I didn't find any MySQL doc's topic on it.
Any help will be much appreciated.