SQL ReferenceSQL 函数日期函数MICROSECOND本页总览MICROSECONDmicroseconddescriptionSyntaxINT MICROSECOND(DATETIMEV2 date)获得日期中的微秒信息。参数为 Datetime 类型examplemysql> select microsecond(cast('1999-01-02 10:11:12.000123' as datetimev2(6))) as microsecond;+-------------+| microsecond |+-------------+| 123 |+-------------+keywordsMICROSECOND