일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTTP
- 티베로
- MySQL
- Tibero
- Date and Time Functions
- SVN
- String Functions and Operators
- Data and Time Functions
- 전자정부표준프레임워크
- 오라클
- String Functions and Date Operators
- Date and Time Function
- 윈도우
- Sring Functions and Operators
- String Function and Operators
- Oracle
- 전자정부 표준프레임워크
- 방화벽
- Today
- Total
웹이야기
MySQL DAYNAME() 본문
MySQL 날짜함수, 시간함수
DAYNAME()
- weekday의 이름을 return.
DAYNAME(date)
의 형태
Returns the name of the weekday for date. The language used for the name is controlled by the value of the lc_time_names system variable.
mysql> SELECT DAYNAME('2020-03-01') ;
+-----------------------+
| DAYNAME('2020-03-01') |
+-----------------------+
| Sunday |
+-----------------------+
1 row in set (0.00 sec)
mysql> SELECT DAYNAME(NOW()) ;
+----------------+
| DAYNAME(NOW()) |
+----------------+
| Wednesday |
+----------------+
1 row in set (0.00 sec)
mysql> SELECT DAYNAME('2020-03-00') ;
+-----------------------+
| DAYNAME('2020-03-00') |
+-----------------------+
| NULL |
+-----------------------+
1 row in set, 1 warning (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL DAYOFWEEK() (0) | 2020.04.01 |
---|---|
MySQL DAYOFMONTH() (0) | 2020.04.01 |
MySQL DAY() (0) | 2020.04.01 |
MySQL DATE_SUB() (0) | 2020.04.01 |
MySQL DATE_FORMAT() (0) | 2020.04.01 |