Mysql 对比两张表数据
第一种方案:select * from tb_a A where NOTEXISTS (select 1from tb_b B where A.ID = B.ID) LIMIT10000 ;第二种方案: select * from tb_a A where A.ID NOT IN(select B.ID from
·
第一种方案:
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 ) LIMIT 10000 ;
更多推荐
所有评论(0)