MySQL trigger before alter table

view story

http://serverfault.com – I want to create a trigger in mysql . For example DELIMITER $$ CREATE TRIGGER test BEFORE ATLER TABLE ON customer INSERT INTO versioning values("$SQL"); // DELIMITER ; Where $SQL is the query that is being generated Can this be done ? I've searched on mysql , and no help at all. Any help will be greatly appreciated Alin (HowTos)