MySQL Forums
Forum List  »  Triggers

logging queries conditionally
Posted by: yawnmoth
Date: May 27, 2011 04:29PM

I have a PHP website that's periodically modifying a particular "cell" in a certain way. Since it's unclear to me which file is causing this row to be updated I was thinking I could create a trigger to log the query when this happens.

ie. IF OLD.APPL_TEAM_ID = 37 AND NEW.APPL_TEAM_ID <> 37

then save the SQL query.

Unfortunately, I'm not sure how to do this. Any ideas?

Options: Reply• Quote


Subject
Views
Written By
Posted
logging queries conditionally
2205
May 27, 2011 04:29PM


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.