随笔 - 271,  文章 - 0,  评论 - 28,  阅读 - 76万
摘要: 问题:create table A ( id varchar(64) primary key, ver int, ...)在id,ver上有联合索引,10000条数据为什么select id from A order by id特别慢?而select id from A order by id,ve 阅读全文
posted @ 2017-02-06 11:51 睡着的糖葫芦 阅读(2352) 评论(0) 推荐(0) 编辑
摘要: 索引优化 ,b-tree假设某个表有一个联合索引(c1,c2,c3,c4) 以下 只能使用该联合索引的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 b 阅读全文
posted @ 2017-02-06 11:37 睡着的糖葫芦 阅读(780) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示