MICROSECOND
Sintassi
MICROSECOND(espr)
Spiegazione
Accetta un'espressione TIME o DATETIME e restituisce i microsecondi come numero compreso nell'intervallo da 0 a 999999.
Esempi
MariaDB [(none)]> SELECT MICROSECOND('12:00:00.123456'); +--------------------------------+ | MICROSECOND('12:00:00.123456') | +--------------------------------+ | 123456 | +--------------------------------+ 1 row in set (0.00 sec) MariaDB [(none)]> SELECT MICROSECOND('2009-12-31 23:59:59.000010'); +-------------------------------------------+ | MICROSECOND('2009-12-31 23:59:59.000010') | +-------------------------------------------+ | 10 | +-------------------------------------------+ 1 row in set (0.00 sec) MariaDB [(none)]>
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.