FROM db WHERE A = const AND B > const AND C >= const ORDER BY B DESC LIMIT constSELECTFROM db' WHERE A' = const ORDER BY X' DESC LIMIT const
关于第一次查询的问题:有一个多行索引(A、B、C)还是因为ORDER BY语句需要额外的单行索引(B) (或</
在MySQL Server 5.7源代码中,查询计划器中使用公式records = (x * (b-a) + a*c-b)/(c-1)来计算密钥分布统计信息不可用时的记录数。matches proportionally more This gives the formula:
records = (x* (b-a) + a*c-b)/(<e