Auto commit
This commit is contained in:
parent
b030ae136a
commit
fbb09280fd
@ -506,7 +506,7 @@ DELIMITER ;
|
|||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
DROP TRIGGER IF EXISTS before_job_delete;
|
DROP TRIGGER IF EXISTS before_job_delete;
|
||||||
CREATE TRIGGER before_job_delete
|
CREATE TRIGGER before_job_delete
|
||||||
BEFORE DELETE ON employee
|
BEFORE DELETE ON job
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
BEGIN
|
BEGIN
|
||||||
IF (SELECT COUNT(*) FROM employee WHERE job_id = OLD.job_id) > 0 THEN
|
IF (SELECT COUNT(*) FROM employee WHERE job_id = OLD.job_id) > 0 THEN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user