摘要: 假设某个表有一个联合索引(c1,c2,c3,c4)一下——只能使用该联合索引的c1,c2,c3部分 A where c1=x and c2=x and c4>x and c3=xB where c1=x and c2=x and c4=x order by c3C where c1=x and c4 阅读全文
posted @ 2016-08-08 09:59 lpfuture 阅读(533) 评论(0) 推荐(0)
摘要: 1、首先查看是否开启profiling功能 SHOW VARIABLES LIKE '%pro%'; 或者 SELECT @@profiling; 2、开启profiling SET profiling=1; 3、执行sql语句 例如: SELECT table_schema AS 'Db Name 阅读全文
posted @ 2016-08-08 09:45 lpfuture 阅读(462) 评论(0) 推荐(0)