MSSQL:首先你的学号在SC的外键必须是 on delete cascadealter table scadd constraint fk_test foreign key (学号) references s(学号) on delete cascadecreate trigger test on safter deleteasbegindelete from sc where 学号 in (select 学号 from deleted)endOracle:create or replace trigger testafter delete on sfor each rowbegindelete from sc where 学号=:old.学号;end;SQL语法DELIMITER |CREATE TRIGGER `
首页 >
自动删除选修表SC中该学生的成绩记录 – 数据库 – 前端|
百度影音浏览器怎么看片,如何更改网页标题,pp助手2.0怎么样自动删除选修表SC中该学生的成绩记录