数据库学习记录(查询优化)
摘要:
SQL查询优化 原则:尽量让SQL命中索引,提升查询性能 最左前缀法则:在使用联合索引时,需要从左开始匹配 如联合索引为name、age、phone 全部命中 where name = 'tom' and age = 18 and phone = '13488888888' 命中name和age w 阅读全文
posted @ 2025-03-11 21:14 Chihirooo 阅读(25) 评论(0) 推荐(0)