MICROSECOND
Syntax
MICROSECOND(expr)
Description
Returns the number of microseconds in the time or datetime expression expr.
Examples
SELECT MICROSECOND('12:00:00.999999');
+--------------------------------+
| MICROSECOND('12:00:00.999999') |
+--------------------------------+
| 999999 |
+--------------------------------+
1 row in set (0.001 sec)
SELECT MICROSECOND('2021-07-15 18:20:17.000010');
+-------------------------------------------+
| MICROSECOND('2021-07-15 18:20:17.000010') |
+-------------------------------------------+
| 10 |
+-------------------------------------------+
1 row in set (0.000 sec)