06 2020 档案

摘要:1.使用length属性获取数组长度 数组求长度用length属性 字符串求长度用length()方法 集合求长度用size()方法 2. public、private、protected、friendly区别 在说明这四个关键字之前,我想就class之间的关系做一个简单的定义,对于继承自己的cla 阅读全文
posted @ 2020-06-30 16:07 chdchd 阅读(308) 评论(0) 推荐(0)
摘要:懒汉式,线程不安全 public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (instance == n 阅读全文
posted @ 2020-06-28 17:21 chdchd 阅读(130) 评论(0) 推荐(0)
摘要:DROP TABLE IF EXISTS `temp_csh_distributor_tag`;CREATE TABLE `temp_csh_distributor_tag` ( `id` int(11) NOT NULL COMMENT '编号', `customer_code` varchar( 阅读全文
posted @ 2020-06-24 11:03 chdchd 阅读(134) 评论(0) 推荐(0)
摘要:–使用索引时有些不生效的情况1、使用like关键字模糊查询时,% 放在前面索引不起作用,只有“%”不在第一个位置,索引才会生效(like ‘%文’–索引不起作用)2、使用联合索引时,只有查询条件中使用了这些字段中的第一个字段,索引才会生效3、使用OR关键字的查询,查询语句的查询条件中只有OR关键字, 阅读全文
posted @ 2020-06-15 16:28 chdchd 阅读(1791) 评论(0) 推荐(0)