【发布时间】:2011-05-11 11:45:30
【问题描述】:
我有
SELECT clientReport.id
FROM clientReport
LEFT JOIN report02 ON (report02.id = clientReport.id)
WHERE report02.id is null;
相当于
SELECT clientReport.id
WHERE clientReport.rowNumber NOT EXISTS (
SELECT clientReport.rowNumber FROM report02, clientReport
WHERE report02.id=clientReport.id);
我大概需要一个完整的内部连接,以便在 report02 中也得到不匹配,而不仅仅是 clientReport。我如何编写加入来执行此操作?
【问题讨论】:
-
编辑并添加了问题
标签: mysql sql join inner-join