张志峰的博客

水滴石川,积少成多。

导航

2015年12月29日

摘要: IF OBJECT_ID ('skBuyProduct_Materiel_iMaterialType','TR') IS NOT NULLDROP TRIGGER skBuyProduct_Materiel_iMaterialType;GOCREATE TRIGGER skBuyProduct_Ma... 阅读全文

posted @ 2015-12-29 18:50 ╰★张志峰★╮ 阅读(309) 评论(0) 推荐(0)

摘要: create trigger TR_MasterTable_Updateon MasterTableafter updateasif update ([Type])--当Type字段被更新时,才会触发此触发器insert into MasterLogTableselectId,(Case [Type... 阅读全文

posted @ 2015-12-29 15:58 ╰★张志峰★╮ 阅读(922) 评论(0) 推荐(0)