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