在sql中对于bit类型的赋值,正常情况下我们会使用下面的语句进行更新:
update FinancialPeriodForecastOpportunity set IsIncluded=true/false where FactOpportunityId=‘OPP-0003062960‘
今天学到了新的技能:
update FinancialPeriodForecastOpportunity setIsIncluded=~IsIncluded where FactOpportunityId=‘OPP-0003062960‘
本文出自 “狼之魂” 博客,请务必保留此出处http://lybing.blog.51cto.com/3286625/1748596
原文:http://lybing.blog.51cto.com/3286625/1748596