when 1 then '甲'
when 2 then ' 乙'
when 3 then '丙'
when 4 then ‘丁'
end as teamalias from 表
update b set bc1 = ( select ac1 from a where a.aid = b.bid)where exists (select 1 from ac1 where a.aid = b.bid)
update B表 t1 inner join A表 t2 on t1.attr_value=t2.color_idset t1.color_name=t2.color_name
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)