mysql> mysql> mysql> SELECT EXTRACT(DAY_MICROSECOND FROM '2003-01-02 10:30:00.000123'); +------------------------------------------------------------+ | EXTRACT(DAY_MICROSECOND FROM '2003-01-02 10:30:00.000123') | +------------------------------------------------------------+ | 2103000000123 | +------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> mysql>