Tramite triggers sì, http://dev.mysql.com/doc/refman/5.1/en/triggers.html