MySQL 中的 MINUTE()、MICROSECOND() 和 HOUR() 函数

MySQL 中的 MINUTE()、MICROSECOND() 和 HOUR() 函数

In this article, we will discuss about: minute(), microsecond(), and hour() MySQL functions. We will do these with the help of their syntax, usage and use cases.

MySQL是一个开源的关系型数据库管理系统。它允许用户存储和操作数据。在MySQL中,我们可以使用函数执行特定的任务。

MINUTE()函数

The MINUTE() function returns the minute portion of a given time or datetime value. It takes one argument, which is the time or datetime value to extract the minutes.

输出格式

Output range is 0 to 59 as integer value.

Syntax

The syntax of the MINUTE() function is as follows

MINUTE(datetime) 登录后复制