Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

MySQL CURTIME() Function

MySQL CURTIME() Function


SQL Dates MySQL Date Functions


Definition and Usage

CURTIME() returns the current time.

Syntax

CURTIME()


Example

The following is the SELECT statement:

SELECT NOW(),CURDATE(),CURTIME()

The result is as follows:

NOW() CURDATE() CURTIME()
2008-11-11 12:45:34 2008-11-11 12:45:34

SQL Dates MySQL Date Functions