跳到主要内容

CURTIME,CURRENT_TIME

Description

Retrieves the current time and returns it as a TIME type.

Alias

  • CURTIME
  • CURRENT_TIME

Syntax

CURTIME()

Return Value

Returns the current time.

Examples

mysql> select current_time();
+----------------+
| current_time() |
+----------------+
| 15:25:47 |
+----------------+