我试图排除符合某些条件的记录。我正在尝试使用 WHERE NOT Exists 语法。
但是不起作用。
select b.*
from Staging.Siebel.UCM."S_CONTACT" b
where not exists (select *
from Staging.Siebel.UCM.“CX_CDI_MERGE” c
where b.cid_num = c.X_NEW_CDI_ID
);
最佳答案
在 SQL 中,您应该能够使用 select ... where not in (select ...)
。
关于mysql - where 不存在条件语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55420890/