Skip to content

Commit

Permalink
sql
Browse files Browse the repository at this point in the history
  • Loading branch information
deipss committed Mar 5, 2024
1 parent 2219f46 commit 15cb5bb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Database/Redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ redis启动时会加载这个.aof文件重新构建数据。为避免.aof文件
## 3.3. List

### 定义
![img.png](list-define.png)
![img.png](img/list-define.png)

### 特性
![img.png](list-feature.png)
![img.png](img/list-feature.png)

- 基于List的消息队列的优劣:
- 可以满足消息的有序性
Expand Down
File renamed without changes
File renamed without changes
11 changes: 11 additions & 0 deletions docs/Database/mysql常用SQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@ select date_add(@dt, interval 1 quarter);
select date_add(@dt, interval 1 year);
select date_add(@dt, interval -1 day); -- sub 1 day
```
# 实用SQL
一个SQL查询出每门课程的成绩都大于80的学生姓名
```sql
select name
from SC
group by name
having min(score) > 80
```

0 comments on commit 15cb5bb

Please sign in to comment.