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 | 31 |
Tags
- 오라클
- Tibero
- SVN
- String Function and Operators
- String Functions and Operators
- 티베로
- MySQL
- 전자정부표준프레임워크
- HTTP
- 윈도우
- 방화벽
- Sring Functions and Operators
- Oracle
- Date and Time Functions
- 전자정부 표준프레임워크
- String Functions and Date Operators
- Date and Time Function
- Data and Time Functions
Archives
- Today
- Total
웹이야기
MySQL DAYOFWEEK() 본문
MySQL 날짜함수, 시간함수
DAYOFWEEK()
- 주의 몇번째(weekday index) 인지를 return.
DAYOFWEEK(date)
Returns the weekday index for date(1=Sunday, 2=Monday.... 7=Saturday). These index value correspond to the ODBC standard.
mysql> SELECT DAYOFWEEK(NOW());
+------------------+
| DAYOFWEEK(NOW()) |
+------------------+
| 4 |
+------------------+
1 row in set (0.00 sec)
mysql> SELECT DAYOFWEEK('2020-04-01');
+-------------------------+
| DAYOFWEEK('2020-04-01') |
+-------------------------+
| 4 |
+-------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL EXTRACT() (0) | 2020.04.01 |
---|---|
MySQL DAYOFYEAR() (0) | 2020.04.01 |
MySQL DAYOFMONTH() (0) | 2020.04.01 |
MySQL DAYNAME() (0) | 2020.04.01 |
MySQL DAY() (0) | 2020.04.01 |
Comments