字段是否走了索引,走不走索引的效率差了几百倍 批量操作 连接的表不要过多 ==避免使用 select== 小表驱动大表 使用 limit 使用 union all 代替 union 口诀:in 小,exists 大,in 先内后外,exists 先外后内