摘要: 1、当使用索引列进行查询的时候见谅不要使用表达式,把计算放到业务层而不是数据库层 select id from table where id+1=5; 优先级范围为ref select id from table where id=4; 优先级范围为count 2、尽量使用主键查询,而不是其他索引, 阅读全文
posted @ 2021-02-28 21:59 showMeTheCodes 阅读(37) 评论(0) 推荐(0) 编辑