三张表:A (id,xxx) B(id,xxx) C(id,xxx) 要根据相同的id显示三张表,做Left Join。
SELECT XXX FROM ((A LEFT JOIN B ON A.id = B.id) LEFT JOIN C ON A.id = C.id) WHERE B.id Is Not Null
From条件后面的括号不能忘了。
三张表:A (id,xxx) B(id,xxx) C(id,xxx) 要根据相同的id显示三张表,做Left Join。
SELECT XXX FROM ((A LEFT JOIN B ON A.id = B.id) LEFT JOIN C ON A.id = C.id) WHERE B.id Is Not Null