摘要:
public class T { @SneakyThrows public static void main(String[] args) { System.out.println("此行后加锁 monitorenter"); synchronized (T.class){ System.out.p 阅读全文
摘要:
有序性 import org.junit.jupiter.api.Test; public class T { //flag初始值 static boolean flag = false; @Test public void business() { new Thread(() -> { //①资源 阅读全文
摘要:
环境 drop table if exists user; create table user( id int primary key not null, roleId int not null, name varchar(20) not null, age int not null, sex ch 阅读全文
摘要:
drop table if EXISTS user; create table user( id int primary key,name VARCHAR(20),age int ); insert into user values (1,'xz',10),(2,'xz2',12); -- inno 阅读全文
摘要:
最左前缀法则 CREATE INDEX idx_age_classid_name ON student(age,classId,name); show index from student; -- 1【索引部分生效】 -- 索引部分生效age key=idx_age_classid_name,key 阅读全文