extract.md 902 字节
Newer Older
M
Mars Liu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# EXTRACT

关于 Extract 操作和其它日期时间函数的对应关系,下列说法正确的是:

1. `extract(mirosecond from date)` 相当于 `ms(date)`
2. `extract(second from date)` 相当于 `second(date)`
3. `extract(minute from date)` 相当于 `minute(date)`
4. `extract(hour from date)` 相当于 `hour(date)`
5. `extract(day from date)` 相当于 `day(date)`
6. `extract(week from date)` 相当于 `week(date)`
7. `extract(month from date)` 相当于 `month(date)`
8. `extract(quarter from date)` 相当于 `quarter(date)`
9. `extract(year from date)` 相当于 `year(date)`

M
Mars Liu 已提交
15 16
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)

M
Mars Liu 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
## 答案

```
2, 3, 4, 5, 6, 7, 8, 9
```

## 选项

### A

全部都对

### B

```
1, 2, 3, 4
```

### C

全都不对

### D

```
5, 6, 7, 8, 9
```