# 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)`
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)。 * `show databases` 列出所有数据库 * `show tables` 列出所有表 ## 答案 ``` 2, 3, 4, 5, 6, 7, 8, 9 ``` ## 选项 ### A 全部都对 ### B ``` 1, 2, 3, 4 ``` ### C 全都不对 ### D ``` 5, 6, 7, 8, 9 ```