SELECT A.x, A.y, B.m, B.n, C.p
FROM A,B,C
WHERE A.x = B.l
AND A.y = B.m
AND B.n = C.q
或
SELECT A.x, A.y, B.m, B.n, C.p
FROM A
INNER JOIN B ON A.x = B.l AND A.y = B.m
INNER JOIN C ON B.n = C.q
给出笛卡尔积。我在哪里做错了?
答案 0 :(得分:0)
仅在sql下使用,它将为您提供笛卡尔积
SELECT A.x, A.y, B.m, B.n, C.p FROM A,B,C