Say you were going to run an update query & update a field, however you wanted to also retrieve the prior value before the value is updated to the new value. Is there a way to do this in one query? Or do you have to run a SELECT before you run the UPDATE to get the value?
Share
If you were to add a
BEFORE UPDATEtrigger to the table, during the processing of the trigger both the old and the new values of the affected column(s) would be available. See here for more… http://dev.mysql.com/doc/refman/5.0/en/triggers.html .