📜  如何编写触发器来增加或减少员工数量 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:33.040000             🧑  作者: Mango

代码示例1
CREATE TRIGGER NEW_HIRED
     AFTER INSERT ON EMPLOYEE
     FOR EACH ROW
     UPDATE COMPANY_STATS SET NBEMP = NBEMP + 1