day()是MySQL日期/时间函数。它用于获取给定日期的日期。
语法
select day(date_value);
参数
date_value :开始日期。
返回值
该函数返回给定日期值的月份中的日期(1到31之间的数字)。
例子1
Select day(2018-09-25);
输出:

例子2
Select day(2018-09-10);
输出:
day()是MySQL日期/时间函数。它用于获取给定日期的日期。
select day(date_value);
date_value :开始日期。
该函数返回给定日期值的月份中的日期(1到31之间的数字)。
Select day(2018-09-25);
输出:

Select day(2018-09-10);
输出: