修改了部分文档
This commit is contained in:
parent
eade73fdea
commit
147bd297d8
|
|
@ -15,10 +15,3 @@
|
|||
### MongoDB概述
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@
|
|||
-- 查询名字中有“天”字的学生的姓名(模糊)
|
||||
select stuname from tb_student where stuname like '%天%';
|
||||
|
||||
-- 查询学生的籍贯
|
||||
-- 查询学生的籍贯(去重)
|
||||
select distinct stuaddr from tb_student
|
||||
where stuaddr<>'' and stuaddr is not null;
|
||||
|
||||
|
|
@ -253,23 +253,19 @@
|
|||
select sum(score) as 总成绩 from tb_score where sid=1001;
|
||||
|
||||
-- 查询每个学生的学号和平均成绩(分组和聚合函数)
|
||||
select sid as 学号, avg(score) as 平均分
|
||||
from tb_score
|
||||
select sid as 学号, avg(score) as 平均分 from tb_score
|
||||
where score is not null
|
||||
group by sid
|
||||
order by 平均分 desc;
|
||||
|
||||
-- 查询平均成绩大于等于80分的学生的学号和平均成绩(分组后的筛选)
|
||||
select sid as 学号, avg(score) as 平均分
|
||||
from tb_score
|
||||
select sid as 学号, avg(score) as 平均分 from tb_score
|
||||
group by sid having 平均分>=80
|
||||
order by 平均分 desc;
|
||||
|
||||
-- 查询年龄最大的学生的姓名(子查询)
|
||||
select stuname from tb_student
|
||||
where stubirth=(select min(stubirth) from tb_student);
|
||||
select stuname from tb_student
|
||||
where stubirth=(select max(stubirth) from tb_student);
|
||||
|
||||
-- 查询选了三门及以上的课程的学生姓名(子查询/分组条件/集合运算)
|
||||
select stuname from tb_student where stuid in
|
||||
|
|
@ -280,9 +276,8 @@
|
|||
from tb_course, tb_teacher
|
||||
where tid=teacherid;
|
||||
|
||||
select cname, ccredit, tname, ttitle
|
||||
from tb_course inner join tb_teacher
|
||||
on tid=teacherid;
|
||||
select cname, ccredit, tname, ttitle from tb_course
|
||||
inner join tb_teacher on tid=teacherid;
|
||||
|
||||
-- 查询学生姓名和所在学院名称
|
||||
select stuname, collname
|
||||
|
|
@ -293,16 +288,29 @@
|
|||
inner join tb_college t2 on t1.collid=t2.collid;
|
||||
|
||||
-- 查询学生姓名、课程名称以及考试成绩
|
||||
select stuname, cname, score
|
||||
from tb_student, tb_course, tb_score
|
||||
where stuid=sid and courseid=cid
|
||||
and score is not null;
|
||||
|
||||
select stuname, cname, score from tb_student
|
||||
inner join tb_score on stuid=sid
|
||||
inner join tb_course on courseid=cid
|
||||
where score is not null;
|
||||
|
||||
-- 查询选课学生的姓名和平均成绩(子查询和连接查询)
|
||||
select stuname, avgscore from tb_student,
|
||||
(select sid, avg(score) as avgscore from tb_score
|
||||
group by sid) temp where sid=stuid;
|
||||
|
||||
|
||||
-- 查询学生姓名、所选课程名称和成绩(连接查询)
|
||||
|
||||
select stuname, avgscore from tb_student
|
||||
inner join (select sid, avg(score) as avgscore
|
||||
from tb_score group by sid) temp on sid=stuid;
|
||||
|
||||
-- 查询每个学生的姓名和选课数量(左外连接和子查询)
|
||||
|
||||
select stuname as 姓名, ifnull(total, 0) as 选课数量
|
||||
from tb_student left outer join (select sid, count(sid) as total
|
||||
from tb_score group by sid) temp on stuid=sid;
|
||||
```
|
||||
|
||||
4. DCL
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
## 团队项目开发
|
||||
|
||||
### Day01
|
||||
|
||||
1. 企业项目开发团队构成和角色:帮助学生了解项目中的角色及其关系,以小组为单位定义角色。
|
||||
2. 项目开发流程(软件过程模型)以及各个阶段涉及的相关文档。
|
||||
3. 团队开发相关工具介绍和环境搭建。
|
||||
4. 项目选题和理解业务。
|
||||
|
||||
### Day02
|
||||
|
||||
1. 业务讲解和需求评审。
|
||||
2. 数据库设计、接口设计、接口文档编撰。
|
||||
3. 模块划分、任务分配和项目进度安排。
|
||||
|
||||
### Day03~Day07
|
||||
|
||||
1. 日常开发,每日代码和进度审查。
|
||||
2. 集中解决项目开发中遇到的公共问题。
|
||||
3. 项目技术重点难点及其相关技术剖析。
|
||||
4. 之前未覆盖到的新技术讲解(例如:第三方授权登录、推送机制、消息队列的应用)。
|
||||
|
||||
### Day08
|
||||
|
||||
1. 单元测试。
|
||||
2. 集成测试。
|
||||
3. 接口测试。
|
||||
4. Selenium自动化测试。
|
||||
5. 性能测试(压力测试)及其相关工具。
|
||||
- Apache Benchmark
|
||||
- SQLSlap
|
||||
- WebBench
|
||||
|
||||
### Day09
|
||||
|
||||
1. MySQL性能优化相关。
|
||||
- SQL优化(执行计划、慢查询分析)
|
||||
- 读写分离
|
||||
- 集群配置
|
||||
- 架构优化
|
||||
2. 基于Redis的缓存、主从复制、哨兵和集群配置、切片。
|
||||
3. 日志分析和漏洞分析。
|
||||
|
||||
### Day10
|
||||
|
||||
1. 项目部署环境搭建。
|
||||
2. Nginx反向代理配置。
|
||||
3. Nginx+KeepAlived集群环境配置。
|
||||
4. HTTPS配置(密钥、证书、配置)。
|
||||
5. 项目运维相关。
|
||||
|
||||
### Day11
|
||||
|
||||
1. 虚拟化技术和虚拟化容器。
|
||||
2. Docker的安装和使用。
|
||||
3. Docker镜像和虚拟化部署。
|
||||
|
||||
### Day12
|
||||
|
||||
1. ShowCase
|
||||
2. 项目评审和总结
|
||||
|
||||
### Day13~Day15
|
||||
|
||||
1. 模拟面试。
|
||||
2. 简历指导。
|
||||
|
||||
|
||||
Loading…
Reference in New Issue