要按条件更新一个表的某个字段
两种写法那个效率快些?
第一种:
UPDATE 
     A
SET
    A.a = case  when 条件(1) then 1 else A.a end
from
     表 A
第二种:
UPDATE 
     A
SET
    A.a = 1
from
     表 A
where
    条件(1)