Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 방화벽
- Oracle
- 전자정부표준프레임워크
- 윈도우
- HTTP
- 오라클
- 티베로
- Date and Time Function
- Data and Time Functions
- String Functions and Operators
- MySQL
- Sring Functions and Operators
- Tibero
- String Functions and Date Operators
- String Function and Operators
- SVN
- 전자정부 표준프레임워크
- Date and Time Functions
Archives
- Today
- Total
웹이야기
MySQL WEEKOFYEAR() 본문
MySQL 날짜함수, 시간함수
WEEKOFYEAR()
-
WEEKOFYEAR(date)
의 형태
Returns the calendar week of the date as a number in the range from 1 to 53. WEEKOFYEAR() is a compatibility function that is equivalent to WEEK(date, 3).
mysql> SELECT WEEKOFYEAR(NOW());
+-------------------+
| WEEKOFYEAR(NOW()) |
+-------------------+
| 14 |
+-------------------+
1 row in set (0.00 sec)
mysql> SELECT WEEKOFYEAR('2020-04-05');
+--------------------------+
| WEEKOFYEAR('2020-04-05') |
+--------------------------+
| 14 |
+--------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL YEARWEEK() (0) | 2020.04.05 |
---|---|
MySQL YEAR() (0) | 2020.04.05 |
MySQL WEEKDAY() (0) | 2020.04.05 |
MySQL WEEK() (0) | 2020.04.05 |
MySQL UTC_TIMESTAMP() (0) | 2020.04.05 |
Comments