select k.Id,k.Name,(select mc from Table2 where Table2.qf=1 and table2.xh=k.bm) as bm,(select mc from table2 where table2.qf=2 and table2.xh=k.jb) as jb from Table1
或者
select xb=(case when xb=1 then '管理部'
when xb=2 then '男'
when xb=3 then '女'
when xb=4 then '其它'
end) from kk
或者
select xb=(case when xb=1 then '管理部'
when xb=2 then '男'
when xb=3 then '女'
when xb=4 then '其它'
end) from kk
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货