DAYOFWEEK(date)SELECT DAYOFWEEK(‘2016-01-16') SELECT DAYOFWEEK(‘2016-01-16 00:00:00')登录后复制-> 7 (表示返回日期date是星期几,记住:星期天=1,星期一=2, ... 星期六=7)登录后复制