show triggers\G;
*************************** 1. row
***************************
Trigger: pt_osc_fudao_course_fudao_course_ins
Event: INSERT
Table: fudao_course
Statement: REPLACE INTO `fudao_course`.`_fudao_course_new` (`id`, `course_id`, `subject`, `grade`, `tid`, `uid`, `aid`, `join_person_id`, `period_type`, `start_time`, `end_time`, `
day`, `week`, `day_start_time`, `day_end_time`, `grade_type`, `course_type`, `course_status`, `teacher_remark`, `student_remark`, `cw_id`, `hw_id`, `add_time`, `update_time`, `complaint`)
VALUES (NEW.`id`, NEW.`course_id`, NEW.`subject`, NEW.`grade`, NEW.`tid`, NEW.`uid`, NEW.`aid`, NEW.`join_person_id`, NEW.`period_type`, NEW.`start_time`, NEW.`end_time`, NEW.`
day`, NEW.`week`, NEW.`day_start_time`, NEW.`day_end_time`, NEW.`grade_type`, NEW.`course_type`, NEW.`course_status`, NEW.`teacher_remark`, NEW.`student_remark`, NEW.`cw_id`, NEW.`hw_id`, NEW.`add_time`, NEW.`update_time`, NEW.`complaint`)
Timing: AFTER
Created: NULL
sql_mode: NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION
Definer: admin_m@%
character_set_client: utf8mb4
collation_connection: utf8mb4_general_ci
Database Collation: utf8_general_ci
*************************** 2. row
***************************
Trigger: pt_osc_fudao_course_fudao_course_upd
Event: UPDATE
Table: fudao_course
Statement: BEGIN DELETE IGNORE
FROM `fudao_course`.`_fudao_course_new`
WHERE !(OLD.`id`
<=> NEW.`id`)
AND `fudao_course`.`_fudao_course_new`.`id`
<=> OLD.`id`;
REPLACE INTO `fudao_course`.`_fudao_course_new` (`id`, `course_id`, `subject`, `grade`, `tid`, `uid`, `aid`, `join_person_id`, `period_type`, `start_time`, `end_time`, `
day`, `week`, `day_start_time`, `day_end_time`, `grade_type`, `course_type`, `course_status`, `teacher_remark`, `student_remark`, `cw_id`, `hw_id`, `add_time`, `update_time`, `complaint`)
VALUES (NEW.`id`, NEW.`course_id`, NEW.`subject`, NEW.`grade`, NEW.`tid`, NEW.`uid`, NEW.`aid`, NEW.`join_person_id`, NEW.`period_type`, NEW.`start_time`, NEW.`end_time`, NEW.`
day`, NEW.`week`, NEW.`day_start_time`, NEW.`day_end_time`, NEW.`grade_type`, NEW.`course_type`, NEW.`course_status`, NEW.`teacher_remark`, NEW.`student_remark`, NEW.`cw_id`, NEW.`hw_id`, NEW.`add_time`, NEW.`update_time`, NEW.`complaint`);
END
Timing: AFTER
Created: NULL
sql_mode: NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION
Definer: admin_m@%
character_set_client: utf8mb4
collation_connection: utf8mb4_general_ci
Database Collation: utf8_general_ci
*************************** 3. row
***************************
Trigger: pt_osc_fudao_course_fudao_course_del
Event: DELETE
Table: fudao_course
Statement: DELETE IGNORE
FROM `fudao_course`.`_fudao_course_new`
WHERE `fudao_course`.`_fudao_course_new`.`id`
<=> OLD.`id`
Timing: AFTER
Created: NULL
sql_mode: NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION
Definer: admin_m@%
character_set_client: utf8mb4
collation_connection: utf8mb4_general_ci
Database Collation: utf8_general_ci
3 rows
in set (
0.00 sec)
ERROR:
No query specified
show triggers\G
4、删除触发器
drop trigger pt_osc_fudao_course_fudao_course_ins;
drop trigger pt_osc_fudao_course_fudao_course_upd;
drop trigger pt_osc_fudao_course_fudao_course_del;
drop trigger
mysql 查看删除触发器等操作
标签:删除 color sed day delete let HERE 存在 value