摘要: 一、隔离级别: 数据库事务的隔离级别有4个,由低到高依次为Read uncommitted、Read committed、Repeatable read、Serializable,这四个级别后三个可以逐个解决脏读、不可重复读、幻读这几类问题。 二、举例说明脏读、不可重复读、幻读 【1】脏读(读取未提 阅读全文
posted @ 2019-04-12 14:28 王庆明 阅读(215) 评论(0) 推荐(0) 编辑
摘要: public class Test02 { public static void main(String args[]) throws InterruptedException { Thread mThread = Thread.currentThread(); Thread t = new Thr 阅读全文
posted @ 2019-04-12 11:43 王庆明 阅读(2328) 评论(0) 推荐(0) 编辑