当前位置:网站首页>MySQL setting trigger problem

MySQL setting trigger problem

2022-07-05 06:52:00 CSDN Q & A

The enterprise database given under the examinee folder db_ emp Including employees surface tb_ employee And department Door Watch tb_ dept.

The employee table has a department number (deptno) , Wages (salary) , The Department table has department ] Number (deptno) 、 Department name (dname)

Design a project named t_ emp The trigger of , The completed function is : When the delete Records in the Department table , Put the department number in the employee table (deptno) Set up empty . And use the command to delete the department number (deptno) by D2 The row of triggers this trigger , And look at the results .

原网站

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202206281519517057.html