部门:商业变现
时间:40分钟
1.写一下二叉树的遍历代码。
2.给了俩张表
student:id,name,score
class:id,student_id,
写sql1:查出所有3班的同学信息
//从class表中查出3班同学的student id,然后从student表中找出这些id的学生
select * from student where id in
(
select studentId from class
where id = 3
)
//联表查
select a.*
from student a
join class b
on a.id = b.studentId
where b.id = 3
sql2:查出所有3班同学的平均成绩
3.http协议是哪一层的协议?头里面具体有什么信息?
4.写一个微信朋友圈点赞功能的用例。