select * from tab a where exists(select 0 from tab b where a.id=b.id)0在这里没有意义 这样写可以提高查询速度 因为不用在展现真实数据select * from tab a where exists(select * from tab b where a.id=b.id)与上边效果一样 上边的效率更高查询速度能提高多少,等测试了再给结果 相关文章: 2022-12-23 2022-12-23 2021-08-27 2022-12-23 2022-12-23 2021-07-11 2021-07-20 2021-11-07