2012年2月6日
摘要: DECLARE@IsInsertbit,@IsUpdatebit,@IsDeletebitIFEXISTS(SELECT1FROMinserted)ANDNOTEXISTS(SELECT1FROMdeleted)SET@IsInsert=1ELSESET@IsInsert=0IFEXISTS(SELECT1FROMinserted)ANDEXISTS(SELECT1FROMdeleted)SET@IsUpdate=1ELSESET@IsUpdate=0IFNOTEXISTS(SELECT1FROMinserted)ANDEXISTS(SELECT1FROMdeleted)SET@IsDelet 阅读全文
posted @ 2012-02-06 17:28 大乖乖 阅读(363) 评论(0) 推荐(0) 编辑