1.活用 with as ....... 2.减少使用 count distinct 合并使用(可以用group by 替代) 3.关联表的时候left join 比inner join快 4.联合索引的应用