CURTIME() in MySQL — How It Works

What the MySQL CURTIME() function does, with an example.

Published October 19, 2026

CURTIME() returns the current time without a date as a TIME value in the session time zone.

How it works

Add a fractional seconds precision with CURTIME(3).

Try it in MySQL

SELECT CURTIME()
14:03:11
SELECT CURTIME(3)
14:03:11.482
SELECT HOUR(CURTIME())
14

Practical examples

Example 1

SELECT CURTIME();
-- 14:03:11

Example 2

SELECT CURTIME(3);
-- 14:03:11.482

Example 3

SELECT HOUR(CURTIME());
-- 14

Use it in a real query

SELECT id, CURTIME() AS result
FROM your_table
LIMIT 10;

Common mistakes

  • Expecting a date component.
  • Time zone confusion.
  • Comparing TIME with DATETIME values.

Key takeaways

  • CURTIME() in one line: CURTIME() returns the current time without a date as a TIME value in the session time zone.
  • Try queries in a test database first.
  • Check NULL handling and data types.

FAQ

Date and time?

Use NOW().

Does CURTIME() work in other databases?

Most have an equivalent, but names and syntax vary between MySQL, PostgreSQL, SQL Server and SQLite.

More SQL articles