SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE student_period_exam;
TRUNCATE subject_period_exam;
TRUNCATE year_period_exam_setup;
SET FOREIGN_KEY_CHECKS = 1;