09 2021 档案
摘要:先来修改最近一次提交的信息: 使用git commit --amend命令 类似于linux的vim修改提交信息。 可以看到最近一次提交的信息已经被修改了! 修改以往n次提交的信息 使用 git rebase -i HEAD~n命令 n是以往第n次的提交记录,这里是修改以往第二次的记录,所以n=2,
阅读全文
摘要:优化规则: -- 优化前SQL SELECT 各种字段 FROM `table_name` WHERE 各种条件 LIMIT 0,10; > -- 优化后SQL SELECT 各种字段 FROM `table_name` main_tale RIGHT JOIN ( SELECT 子查询只查主键 F
阅读全文
摘要:记录一个java操作mysql数据库出现死锁问题; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get loc
阅读全文
Failed to add the foreign key constraint. Missing index for constraint 'stu_ibfk_1' in the reference
摘要:alter table stu add foreign key(cno) references user(id);Failed to add the foreign key constraint. Missing index for constraint 'stu_ibfk_1' in the re
阅读全文
摘要:官方文档: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html https://www.oracle.com/java/technologies/javase/vmoptions-jsp.html
阅读全文
摘要:TLAB全称是thread local allocation buffer,本地线程缓存的意思。 有什么作用,简单来说是多线程的情况下,加速对象实例内存分配的一种方式!每个线程在java heap堆中预留的一小块内存。当线程需要堆区空间的时候,可以使用预先分配的线程缓冲!只有本地缓冲区用完了,分配新
阅读全文

浙公网安备 33010602011771号