摘要: 索引的作用: 检索 + 排序 索引建立原则: 1: 频繁作为查询条件的2: 作为外键关联的3: 经常会更新的字段不适合建立索引4: 排序字段(排序字段若通过索引去访问,将大大提高排序速度) 5: 查询中 统计/分组字段 explain 之 type 1. sytstem > const > eq_r 阅读全文
posted @ 2020-03-18 16:08 yang希军 阅读(225) 评论(0) 推荐(0)
摘要: public static void main(String[] args) throws Exception { bubblueSort(new int[]{2,5,6,1,8,5,-2,7}); selectSort(new int[]{2,5,6,1,8,5,-2,7}); } public 阅读全文
posted @ 2020-03-18 16:05 yang希军 阅读(128) 评论(0) 推荐(0)