MySQL Date/Time microsecond() Function

17 Mar 2025 | 1 min read

The microsecond() is a MySQL date/time function. It is used to get the value of microsecond from given datetime or time.

Syntax

Parameter:

Date_value: datetime or time value for getting microsecond.

Returns:

This function returns the microsecond portion of a date value.

Example 1

Output:


MySQL Datetime microsecond() Function

Example 2

Output:


MySQL Datetime microsecond() Function
Next TopicMySQL datetime