摘要:
update table set table.field=( case when 条件 then 值1 else 值2 end )where 条件如:update BM_TrainingPeriod set IsValid=( case when exists(select 1 From BM_TrainingGroup y where BM_TrainingPeriod.id=y.TrainingPeriodid and IsValid=1) then 1 else 0 end ) where id=@TrainingPeriodID 阅读全文
posted @ 2013-10-09 09:45
dengjd
阅读(152)
评论(0)
推荐(0)

浙公网安备 33010602011771号