摘要:
查询存在一个表而不在另一个表中的数据记录的方法有很多,介绍其中4种:1、方法一(仅适用单个字段):使用 not in ,比较容易理解,缺点是效率低如:select A.ID from A where A.ID not in (select ID from B);2、方法二(适用多个字段匹配):使用 阅读全文
摘要:
User user = new User(1000L, "guodong", 99); User user1 = new User(); Optional.ofNullable(user).map(data -> data.getName()).ifPresent(user1::setName); 阅读全文
摘要:
一.HashMap基础HashMap继承了AbstractMap抽象类,实现了Map,Cloneable,Serializable接口。HashMap的源码属性: public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K, 阅读全文