说明:最近整理的笔记
SQL执行计划
explain select customer_id,title,content from product_comment
where audit_status=1 and product_id=199 limit 0,5;
查询计划的限制
无法展示存储过程,触发器,UDF对查询的影响
联合索引
应当把区分度好的放到联合索引的左侧
sql语句改写
select customer_id,title,content from p
<weixin_45404388> 上传 | 大小:13kb