MICROSECOND()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the microseconds from the TIME or DATETIME expression as a number.
USAGE
MICROSECOND(timestamp)
Argument Name | Description |
|---|---|
| The |
DETAILS
MICROSECOND()is a date-time function that returns the microseconds portion of a time value.
The return value is a number in the range 0 to 999999.
A NULL is returned if the argument is NULL.
EXAMPLES
SELECT MICROSECOND('10:02:01.123');
+-----------------------------+
| MICROSECOND('10:02:01.123') |
+-----------------------------+
| 123000 |
+-----------------------------+
SELECT MICROSECOND('2019-01-30 10:02:01.1234567');
+--------------------------------------------+
| MICROSECOND('2019-01-30 10:02:01.1234567') |
+--------------------------------------------+
| 123457 |
+--------------------------------------------+
