随笔分类 - SQL SERVER
摘要:关于动态SQL,我们日常看到的例子是:create table scores(stdname varchar(20),stdsubject varchar (20),score int)insert into scores (stdname,stdsubject,socre) values ('wing','数学',60);insert into scores (stdname,stdsubjec...
阅读全文
摘要:触发器是一种特殊的存储过程,不是用户直接调用,而是通过对表的一些操作触发的,比如对某个表的insert,update,delete,如果我们在该表中定义了相应的触发器,那么触发器就会执行。在SQL SERVER中,触发器分为两种,一是前触发器(instead of),另一种是后触发器(after or for).它们的区别在于:前触发器(instead of) 顾名思意,就是代替引起触发的操作,而...
阅读全文
浙公网安备 33010602011771号