日期:2014-05-16 浏览次数:20651 次
select a.a,a.b,a.c,isnull(b.a1,'0') as a1 from a left join b on a.a=b.a1
select a.A,a.B,a.C,isnull(b.A1,0) 'A1' from A a left join (select distinct A1 from B) b on a.A=b.A1