일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Date and Time Function
- 티베로
- 윈도우
- Sring Functions and Operators
- 전자정부표준프레임워크
- String Functions and Operators
- Date and Time Functions
- String Functions and Date Operators
- Data and Time Functions
- HTTP
- Oracle
- 방화벽
- Tibero
- 오라클
- String Function and Operators
- 전자정부 표준프레임워크
- SVN
- MySQL
- Today
- Total
웹이야기
MySQL TIME_FORMAT() 본문
MySQL 날짜함수, 시간함수
TIME_FORMAT()
-
TIME_FORMAT(time format)
의 형태
This is used like the DATE_FORMAT() function, but the format string may contain format specifiers only for hours, minute, seconds, and microseconds. Other specifiers produce a NULL value or 0.
It the time value contains an hour part that is greater than 23, the %H and %k hour format specifiers produce a value larger than the usual range of 0..23. The other hour format specifiers produce the hour value modulo 12.
mysql> SELECT TIME_FORMAT('100:00:00', '%h %k %h %I %l');
+--------------------------------------------+
| TIME_FORMAT('100:00:00', '%h %k %h %I %l') |
+--------------------------------------------+
| 04 100 04 04 4 |
+--------------------------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL TO_DAYS() (0) | 2020.04.05 |
---|---|
MySQL TIME_TO_SEC() (0) | 2020.04.05 |
MySQL TIMESTAMPDIFF() (0) | 2020.04.04 |
MySQL TIMESTAMPADD() (0) | 2020.04.04 |
MySQL TIMESTAMP() (0) | 2020.04.04 |