barnyard9 Asked: 2023-10-31 16:00:35 +0800 CST 查找 B 的行中没有 is_true='Y' 的所有 C.id? 5 有两个表C和B。 它们通过 相连C.id=B.cid。 我需要找到所有C.ides 所在位置: 没有对应的行cid有is_true='Y' 我尝试过各种查询,但无法理解其中任何一个。这是我的想法之一。 select * from C inner join B on C.id=B.cid where -- loop all rows of B using B.cid -- output if the row has is_true!='Y' mysql