일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- MySQL
- String Functions and Date Operators
- Date and Time Functions
- Tibero
- 티베로
- Oracle
- 오라클
- 전자정부표준프레임워크
- 방화벽
- HTTP
- String Functions and Operators
- Sring Functions and Operators
- Data and Time Functions
- String Function and Operators
- Date and Time Function
- SVN
- 윈도우
- 전자정부 표준프레임워크
- Today
- Total
웹이야기
MySQL FROM_DAYS() 본문
MySQL 날짜함수, 시간함수
FROM_DAYS()
- 숫자를 DATE 형태로 return 해준다.
FROM_DAYS(N)
Given a day number N, returns a DATE value.
Use FROM_DAYS() with caution on old dates. It is not intended for use with values that precede the advent of the Gregorian calendar(1582).
mysql> SELECT FROM_DAYS(100) ;
+----------------+
| FROM_DAYS(100) |
+----------------+
| 0000-00-00 |
+----------------+
1 row in set (0.00 sec)
mysql> SELECT FROM_DAYS(10000) ;
+------------------+
| FROM_DAYS(10000) |
+------------------+
| 0027-05-19 |
+------------------+
1 row in set (0.00 sec)
mysql> SELECT FROM_DAYS(80000) ;
+------------------+
| FROM_DAYS(80000) |
+------------------+
| 0219-01-13 |
+------------------+
1 row in set (0.00 sec)
mysql> SELECT FROM_DAYS(180000) ;
+-------------------+
| FROM_DAYS(180000) |
+-------------------+
| 0492-10-27 |
+-------------------+
1 row in set (0.00 sec)
mysql> SELECT FROM_DAYS(980000) ;
+-------------------+
| FROM_DAYS(980000) |
+-------------------+
| 2683-02-24 |
+-------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL GET_FORMAT() (0) | 2020.04.02 |
---|---|
MySQL FROM_UNIXTIME() (0) | 2020.04.02 |
MySQL EXTRACT() (0) | 2020.04.01 |
MySQL DAYOFYEAR() (0) | 2020.04.01 |
MySQL DAYOFWEEK() (0) | 2020.04.01 |