日期:2014-05-20 浏览次数:20692 次
select A.* from A left join B on (A.c1=B.c1 and B.c2='N')
where A.c3>9
var query= from a in A.Where(x=>x.c3>9)
join b in B.Where(y=>y.c2=="N")
on a.c1 equals b.c1 into lg
from b in lg.DefaultIfEmpty()
select a;
from r in o.DefaultIfEmpty()
select new {
ID=r.ID,
Name=(r==null)?"":r.Name
}