创建触发器/存储过程的使用 (1)触发器的使用 ①在数据表“学生”中创建update触发器,级联更新“选课”表相应的记录。 ②利用Delete表,将“学生”表中被删除的记录存储到“学生备份”表中,以供日后的数据查询和分析。 create trigger su_update on student for update as declare @bsno char(9),@asno char(9) print'使用update触发器级联更新sc表中相关的行-开始' select @bsno=sno from deleted print'更新前的学号'+@bsno select @asno