sql函数 的 SQL WEEKDAY()函数

WEEKDAY(date)

返回日期星期索引 (0 = Monday, 1 = Tuesday, . 6 = Sunday).

mysql> SELECT WEEKDAY('1998-02-03 22:23:00');
+---------------------------------------------------------+
| WEEKDAY('1998-02-03 22:23:00')                          |
+---------------------------------------------------------+
| 1                                                       |
+---------------------------------------------------------+
1 row in set (0.00 sec)

返回sql函数教程,您可手机上继续学习sql函数教程SQL WEEKDAY()函数语法,或扫下面二维码自动跳转。