面试知识点记忆

utf8mb4 emoji表情。

select * from tb_student a left join tb_class b on (a.c_id=b.c_id)      left join保证左边数据全部显示,如果关联数据不存在,置为null

select * from tb_student a right join tb_class b on (a.c_id=b.c_id)     right join保证右边全部显示,并且因为学生对班级是多对一,所以出现多组班级的情况。

所以一般情况下:多的一方一般是放在left join的左边,或者right join的右边。

select * from tb_student a inner join tb_class b on (a.c_id=b.c_id)      等同select * from tb_student a, tb_class b where a.c_id = b.c_id

 

 创建索引 create index tb_student_cid_index on tb_student ( c_id )      依次对应的3个变量是,索引名、表名、字段名

2018-09-12

单线程:ArrayList、HashMap。多线程:Vector、HashTable。

2018-09-12

cronExpression定时器表达式:秒 分 时 日 月 周 年。比如秒的位置填5/2,意思是从第5s(含)开始,每隔2s执行一次。

 

posted on 2018-09-11 22:00  angelshelter  阅读(89)  评论(0编辑  收藏  举报

导航