bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL MICROSECOND() Function

Example

SELECT MICROSECOND("2017-06-20 09:34:00.000023");

Definition and Usage

The MICROSECOND() function returns the microsecond part of a time/datetime (from 0 to 999999).

Syntax

MICROSECOND(
datetime
)

Parameter Values

ParameterDescription
datetimeRequired. The time or datetime to extract the microsecond from

Technical Details

Works in:From MySQL 4.0

Previous

MySQL MAKETIME() Function

Next

MySQL MINUTE() Function