目前,我正在执行以下查询: " N' W6 A# u Z4 Oselect a.x, b.x, c.x" n5 v3 G& j! T) K+ ^# W
from number as a, customer as b, numbergroup as c7 H5 Y: v1 h [( M& o
where a.b = b.b and a.c = c.c and c.b = b.b- Y. {+ U4 `2 U" r: o
但是,我想从表“ a”中检索记录,即使“ ac = null”,由于“ a”和“ c”之间的联接而无法检索。 " R. F1 }% H/ L' o. C B, O3 o" F我找到了有关的信息,left ! w# d9 P) @ U5 ]' Jjoin但在这种情况下查询涉及两个以上的表时,我不知道该怎么做。* u0 c" A# z5 B
2 h% L/ \) H, O$ }& C2 R8 c 解决方案: & O5 `. b/ }" P1 e1 p + Y, j) u7 d: n$ e
! V( O7 @! r( Z& J- L! i; M 0 L3 g+ F% i. O5 Z$ m, R7 | select a.x, b.x, c.x * {4 T$ m1 f% w+ a, N' S
from number as a & n% a; j' J$ u: t/ U) P left join customer as b on a.b = b.b # {+ `4 x: w* ?+ G! Q left join numbergroup as c on a.c = c.c and c.b = b.b