摘要:
1.最左前缀匹配原则,非常重要的原则,mysql会一直向右匹配直到遇到范围查询(>、<、between、like)就停止匹配,比如a = 1 and b = 2 and c > 3 and d = 4 如果建立(a,b,c,d)顺序的索引,d是用不到索引的,如果建立(a,b,d,c)的索引则都可以用 阅读全文
摘要:
什么是自动装箱拆箱 什么是自动装箱拆箱 基本数据类型的自动装箱(autoboxing)、拆箱(unboxing)是自J2SE 5.0开始提供的功能。 一般我们要创建一个类的对象实例的时候,我们会这样: Class a = new Class(parameter); 当我们创建一个Integer对象时 阅读全文
摘要:
显示表的索引:show index from table_name; 添加索引:alter table test.hat_area add index new_index2(id) 创建表:createtable Employee( ID int auto_increment, Ename varc 阅读全文