12 2019 档案
摘要:壹: 修饰符: 抽象类:public ,protected ,private 可以有静态方法,必须要有方法体。 接口:public , default。可以有静态方法,但必须要有方法体,其中默认方法修饰的方法也要有方法体。 抽象类和接口中都可以有main方法; 贰: 继承与实现: 抽象类可以同时继承
阅读全文
摘要:创建索引方式: 1、create index 索引名 on 表名 (字段) 2、alter table 表 add index 索引名 (字段) -- 普通索引 alter table 表名 add index 索引名 (字段) ; -- 唯一索引 alter table 表名 add unique
阅读全文
摘要:如何查看执行较慢的sql: 壹: 1、使用show variables like '%query%'; 查询结果: ft_query_expansion_limit 20have_query_cache YESlong_query_time 10.000000query_alloc_block_si
阅读全文
摘要:新建状态 - new 可运行状态 - runnable 阻塞状态 - blocked 等待状态 - waitting 超时等待 - time_waitting 死亡状态 - TERMINATED
阅读全文
摘要:壹: where后面不能跟聚合函数(sum、avg、count、max、min) having后面可以跟 贰: where和having都能用: select goods_price,goods_name from sw_goods where goods_price>100 select good
阅读全文
摘要:public class demo_sort { public static void main(String[] args) { //冒泡排序算法 int[] numbers=new int[]{1,5,8,2,3,9,4}; int i,j; for(i=0;i<numbers.length-1
阅读全文
摘要:不同一: synchronized可以修饰方法, volatile只能修饰变量 不同二: synchronized是同步的 volatile修饰的变量具有可见性。
阅读全文