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)
与上边效果一样 上边的效率更高
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)与上边效果一样 上边的效率更高查询速度能提高多少,等测试了再...