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
- 전자정부표준프레임워크
- 전자정부 표준프레임워크
- Tibero
- 윈도우
- 방화벽
- Sring Functions and Operators
- HTTP
- Date and Time Function
- MySQL
- 티베로
- Date and Time Functions
- Oracle
- String Function and Operators
- String Functions and Operators
- SVN
- Data and Time Functions
- String Functions and Date 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