我有两个表,其中一个表的订单看起来像这样
本B3
select o.*
from order o
leff join coupon c on o.bin=c.bin and o.coupon=c.coupon
where c.bin is null
反连接将查找第一个表中BIN
值在第二个表中不存在的行。例如:
select o.*
from o
leff join c on c.bin = o.bin
where c.bin is null