表A: ID 表B: ID 1 1 2 2 3 4 4 5 5 6 7 8 也就是我要找出A表中没有出现在B表中的那些ID
不是,我这是求B表的补集呀
你这是求表a中不在表b中的数据吗?
是的呀
select id from a where id not in (select id from b)