SQL SERVER触发器查询出2条数据,但是只修改一条要怎么做 10
CREATETRIGGERTR_ZD_YFDY1ONZD_YFDYWITHENCRYPTIONFORINSERTAsSETNOCOUNTONupdateZD_YFDYse...
CREATE TRIGGER TR_ZD_YFDY1 ON ZD_YFDY WITH ENCRYPTIONFOR INSERT As SET NOCOUNT ONupdate ZD_YFDY set STATE='0' where YFBM=402 AND STATE='0' SET NOCOUNT OFF 查询条件SELECT * FROM ZD_YFDY where YFBM=402 AND STATE='0'当这两个state都等于0时,如何使用触发器把其中一个的STATE改为1呢
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询