일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Oracle
- 방화벽
- String Function and Operators
- 전자정부표준프레임워크
- Sring Functions and Operators
- String Functions and Date Operators
- Date and Time Function
- String Functions and Operators
- HTTP
- 윈도우
- 티베로
- SVN
- Date and Time Functions
- 오라클
- Data and Time Functions
- Tibero
- MySQL
- 전자정부 표준프레임워크
- Today
- Total
웹이야기
MySQL ADDTIME() 본문
MySQL 날짜함수, 시간함수
ADDTIME()
ADDTIME(expr1, expr2)
의 형태
ADDTIME() adds expr2 to expr1 and returns the result. expr1 is a time or datetime expression, and expr2 is a time expression.
mysql> SELECT ADDTIME('2007-12-31 23;59;59.999999', '1 1:1:1.000002');
+---------------------------------------------------------+
| ADDTIME('2007-12-31 23;59;59.999999', '1 1:1:1.000002') |
+---------------------------------------------------------+
| 2008-01-02 01:01:01.000001 |
+---------------------------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT ADDTIME('01:00:00.999999', '02:00:00.999998');
+-----------------------------------------------+
| ADDTIME('01:00:00.999999', '02:00:00.999998') |
+-----------------------------------------------+
| 03:00:01.999997 |
+-----------------------------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL CURDATE() (0) | 2020.04.01 |
---|---|
MySQL CONVERT_TZ() (0) | 2020.04.01 |
MySQL ADDDATE() (0) | 2020.04.01 |
MySQL Date and Time Functions (0) | 2020.03.31 |
MySQL TRUNCATE() (0) | 2020.03.29 |