mysql 查询语句 查询一个表在另一个表不存在的数据

2025-03-23 19:18:41
推荐回答(1个)
回答1:

可以查出data_pool中appleid在表appleid_use_record表中不存在的数据

select * from data_pool t

where not exists (select 1 from appleid_use_record m where t.appleid=m.appleid)