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
相關文章
相關標籤/搜索