MySQL MICROSECOND() Function
Example
Return the microsecond portion of a date value:
SELECT MICROSECOND("2017-06-20 09:34:00.000023");
Try it Yourself »
Definition and Usage
The MICROSECOND() function returns the microsecond portion of a date value (from 0 to 999999).
Syntax
MICROSECOND(date)
Parameter Values
Parameter | Description |
---|---|
date | Required. The time or datetime value from which to extract the microsecond |
Technical Details
Works in: | MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23 |
---|
More Examples
Example
Return the microsecond portion of a date value:
SELECT MICROSECOND("23:59:59.000045");
Try it Yourself »