日期:2014-05-17 浏览次数:20681 次
update A
set m='xxx'
where FLSUM=200 and mMemberCardId in
(select MemberId from AgentList
where iFranchiserState='1')
and exists
(select 1 from B表 b
where b.mMemberCardId=a.mMemberCardId and b.shopid=1)
update A
set m='xxx'
from A
inner join AgentList on A.mMemberCardId=AgentList.MemberId
where A.FLSUM=200 and AgentList.iFranchiserState='1' --(如果是shopid是否是等于1,那么where A.FLSUM=200 and AgentList.shopid='1')
update A set m='xxx'
where FLSUM=200
and mMemberCardId in (select MemberId from AgentList where iFranchiserState='1')
and exists(select 1 from B where b.shopid = 1 and b.mMemberCardId = a.mMemberCardId)