11.4.17 DAYOFYEAR(date)函数
DAYOFYEAR(date)函数返回日期是一年中的第几天。使用示例如下:
mysql> SELECT DAYOFYEAR(NOW());
+------------------+
| DAYOFYEAR(NOW()) |
+------------------+
| 349 |
+------------------+
1 row in set (0.00 sec)
DAYOFYEAR(date)函数返回日期是一年中的第几天。使用示例如下:
mysql> SELECT DAYOFYEAR(NOW());
+------------------+
| DAYOFYEAR(NOW()) |
+------------------+
| 349 |
+------------------+
1 row in set (0.00 sec)
>