Mysql 日期转换%w星期天返回0

DATE_FORMAT(date,format)直接上个例子:取出当前时间的年份select DATE_FORMAT(SYSDATE(), '%Y')返回值:2020 常用格式 格式描…
5年前 (2021-02-07)DB1364