2019年7月10日

事物特性

摘要: ACID 1.原子、一致、持久、隔离 事物级别 2.1默认 、每种数据库不一样 select @@tx_isolation查看 2.2读未提交 2.3读已提交 2.4串行化 阅读全文

posted @ 2019-07-10 15:36 raoziming 阅读(135) 评论(0) 推荐(0) 编辑

Union和union all区别?

摘要: 恢复内容开始 UNION用的比较多union all是直接连接,取到得是所有值,记录可能有重复 union 是取唯一值,记录没有重复 1、UNION 的语法如下: [SQL 语句 1] UNION [SQL 语句 2]2、UNION ALL 的语法如下: [SQL 语句 1] UNION ALL [ 阅读全文

posted @ 2019-07-10 11:19 raoziming 阅读(82) 评论(0) 推荐(0) 编辑

Join(inner、left、right)的区别?

摘要: left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录。 select * from app01_publisher left join app01_book on app01_publisher.id = app01_book.publish_id 阅读全文

posted @ 2019-07-10 11:16 raoziming 阅读(377) 评论(0) 推荐(0) 编辑

2019年7月4日

hash\hashmap\hashTable\hashSet

摘要: https://www.cnblogs.com/javabg/p/7258550.html 阅读全文

posted @ 2019-07-04 11:28 raoziming 阅读(54) 评论(0) 推荐(0) 编辑

2019年6月28日

String、StringBuffer、StringBuilder区别

摘要: 1.执行效率 StringBuilde>StringBuffer>String 2.底层:String 字符数组 private final char value[]; 长度不变、常量 String a="q"; a=a+"1"; a是新的对象 StringBuilder char value[] 阅读全文

posted @ 2019-06-28 18:03 raoziming 阅读(76) 评论(0) 推荐(0) 编辑

导航