摘要:
DAYOFWEEK(date) 返回日期date是星期几(1=星期天,2=星期一,……7=星期六,ODBC标准)mysql> select DAYOFWEEK('1998-02-03'); -> 3WEEKDAY(date) 返回日期date是星期几(0=星期一,1=星期二,……6= 星期天)。mysql> select WEEKDAY('1997-10-04 22:23:00'); -> 5mysql> select WEEKDAY('1997-11-05'); -> 2DAYOFMONTH(date) 返回 阅读全文