update top(1) TableA set a=1,b=@b,@c=c  
where a=0