DELIMITER |
CREATE TRIGGER phpmyadmin.tri_hisInsert AFTER INSERT
ON pma__history FOR EACH ROW
BEGIN
INSERT INTO user_act_history (`username`,`db`,`table`,`timevalue`,`sqlquery`) VALUES (NEW.`username`,NEW.`db`,NEW.`table`,NEW.`timevalue`,NEW.`sqlquery`);
END|
DELIMITER ;
本文名称:加个trigger
文章来源:
http://cqcxhl.com/article/jhdjoh.html