摘要:
假設某個表有一個聯(lián)合索引(c1,c2,c3,c4)一下——只能使用該聯(lián)合索引的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
閱讀全文
摘要:
1、首先查看是否開啟profiling功能 SHOW VARIABLES LIKE '%pro%'; 或者 SELECT @@profiling; 2、開啟profiling SET profiling=1; 3、執(zhí)行sql語句 例如: SELECT table_schema AS 'Db Name
閱讀全文