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 | 29 | 30 |
Tags
- Date and Time Function
- 전자정부 표준프레임워크
- Tibero
- HTTP
- Date and Time Functions
- 전자정부표준프레임워크
- 윈도우
- Oracle
- 방화벽
- 티베로
- 오라클
- MySQL
- Data and Time Functions
- Sring Functions and Operators
- SVN
- String Functions and Date Operators
- String Function and Operators
- String Functions and Operators
Archives
- Today
- Total
웹이야기
MySQL WEEKDAY() 본문
MySQL 날짜함수, 시간함수
WEEKDAY()
-
WEEKDAY([date])
의 형태
Returns the weekday index for date(0=Monday, 1=Tuesday, ... 6=Sunday)
mysql> SELECT WEEKDAY(NOW());
+----------------+
| WEEKDAY(NOW()) |
+----------------+
| 6 |
+----------------+
1 row in set (0.00 sec)
mysql> SELECT WEEKDAY('2020-04-16');
+-----------------------+
| WEEKDAY('2020-04-16') |
+-----------------------+
| 3 |
+-----------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL YEAR() (0) | 2020.04.05 |
---|---|
MySQL WEEKOFYEAR() (0) | 2020.04.05 |
MySQL WEEK() (0) | 2020.04.05 |
MySQL UTC_TIMESTAMP() (0) | 2020.04.05 |
MySQL UTC_TIME() (0) | 2020.04.05 |
Comments