Mysql 对比两张表数据

第一种方案:sql select  *  from  tb_a   A  where  NOT EXISTS (select 1 from tb_b  B  where  A.ID = B.ID)  LIMIT 10000 ; 第二种方案:   select  *  from  tb_a   A  where  A.ID  NOT IN(select  B.ID  from tb_b  B )  
相关文章
相关标签/搜索