- 博客(2)
- 收藏
- 关注
原创 java父类中的this指向子类
//this指向子类,因为创建子类对象,子类调用父类,执行时看右边即子类 public class Test { public static void main(String[] args) { Son son = new Son(); son.eat(); } } class Father{ {//this指向子类,因为创建子类对象,子类调用父类,执行时看右边即子类 System.out.println(this); } public void eat() {
2021-09-23 17:52:47
527
原创 mysql中count不显示null项的问题
SELECT d.*,COUNT(*) 个数 FROM departments d INNER JOIN employees e ON e.department_id = d.`department_id` GROUP BY department_id 内连接方式:结果集中没有员工数为0的项 #################################################### SELECT d.*,COUNT(*) 个数 FROM departments d LEFT OUTER
2021-09-10 12:58:27
610
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人