摘要: 1、如果在(a,b,c)三个字段上建立联合索引,那么它能够加快 a | (a,b) | (a,b,c) 三组查询速度。 select count(distinct left(code, 5))/count(*) from device; 说明:建索引时使用上述语句看看区分度,选择合适的长度,通常区分 阅读全文
posted @ 2020-04-22 10:21 御简 阅读(189) 评论(0) 推荐(0) 编辑