SQL ReferenceSQL 函数日期函数TO_DATE本页总览TO_DATEto_datedescriptionSyntaxDATE TO_DATE(DATETIME)返回 DATETIME 类型中的日期部分。examplemysql> select to_date("2020-02-02 00:00:00");+--------------------------------+| to_date('2020-02-02 00:00:00') |+--------------------------------+| 2020-02-02 |+--------------------------------+keywordsTO_DATE