DROPTRIGGERIFEXISTS`student_update`;CREATETRIGGER`student_update`AFTERUPDATEON`ff_students`FOR EACH ROWBEGININSERTINTO ff_triggers(type,item_id,createtime)VALUES('student',new.sid,unix_timestamp(now()));END
insert
DROPTRIGGERIFEXISTS`student_insert`;CREATETRIGGER`student_insert`AFTERINSERTON`ff_students`FOR EACH ROWBEGININSERTINTO ff_triggers(type,item_id,createtime)VALUES('student',new.sid,unix_timestamp(now()));END
delete
DROPTRIGGERIFEXISTS`student_delete`;CREATETRIGGER`student_delete` BEFORE DELETEON`ff_students`FOR EACH ROWBEGININSERTINTO ff_triggers(type,item_id,createtime)VALUES('student',old.sid,unix_timestamp(now()));END