【发布时间】:2013-04-17 06:49:02
【问题描述】:
SELECT Id, Name, Lastname
FROM customers AS c, Places AS p,
WHERE c.customer_ID = p.customer_ID
我的问题是,我想阻止显示另一个表(阶段)中存在的行的查询结果
【问题讨论】:
-
对不起标题,我想说如果存在
-
使用
IF NOT EXISTS()构造或LEFT JOIN that other table ON your on clause WHERE some non-nullable column in other table IS NULL。