mysql高级(三)——sql调优

小表驱动大表 使用in的sql:select * from A where id in (select id from B) 等价于: for select id from B for select * from A where A.id = B.id 当B表的数据小于A表的数据集时,用in 使用exists的sql:select * from A where exists (select 1 f
相关文章
相关标签/搜索