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
- Oracle
- 티베로
- Data and Time Functions
- Sring Functions and Operators
- 방화벽
- Tibero
- 전자정부 표준프레임워크
- 전자정부표준프레임워크
- 오라클
- Date and Time Function
- HTTP
- 윈도우
- SVN
- MySQL
- Date and Time Functions
- String Functions and Date Operators
- String Function and Operators
- String Functions and Operators
Archives
- Today
- Total
웹이야기
MySQL HOUR() 본문
MySQL 날짜함수, 시간함수
HOUR()
- 시간에 대한 시 값을 알려준다. (HOUR)
HOUR(time)
의 형태
Returns the hour for time. The range of return value is 0 to 23 for time-of-day values. Howerer the range of TIME values actually is much larger, so HOUR can return values greater than 23.
mysql> SELECT HOUR(NOW());
+-------------+
| HOUR(NOW()) |
+-------------+
| 12 |
+-------------+
1 row in set (0.00 sec)
mysql> SELECT HOUR('10:05:03');
+------------------+
| HOUR('10:05:03') |
+------------------+
| 10 |
+------------------+
1 row in set (0.00 sec)
mysql> SELECT HOUR('272:05:03');
+-------------------+
| HOUR('272:05:03') |
+-------------------+
| 272 |
+-------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL LOCALTIME() (0) | 2020.04.02 |
---|---|
MySQL LAST_DAY() (0) | 2020.04.02 |
MySQL GET_FORMAT() (0) | 2020.04.02 |
MySQL FROM_UNIXTIME() (0) | 2020.04.02 |
MySQL FROM_DAYS() (0) | 2020.04.01 |
Comments