일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 방화벽
- String Functions and Date Operators
- HTTP
- Date and Time Function
- MySQL
- 윈도우
- String Function and Operators
- Tibero
- Data and Time Functions
- String Functions and Operators
- 티베로
- SVN
- Date and Time Functions
- 오라클
- 전자정부 표준프레임워크
- Sring Functions and Operators
- 전자정부표준프레임워크
- Oracle
- Today
- Total
웹이야기
MySQL TIME() 본문
MySQL 날짜함수, 시간함수
TIME()
- 시간(time)을 추출
TIME(expr)
의 형태
Extract the time part of the time or datetime expressioin expr and returns it as a string.
This function is unsafe for statement-based replication. A warning is logged if you use this function when binlog_format is set to STATEMENT.
mysql> SELECT TIME(NOW());
+-------------+
| TIME(NOW()) |
+-------------+
| 17:13:24 |
+-------------+
1 row in set (0.00 sec)
mysql> SELECT TIME('2020-04-03 13:11:12.99887766');
+--------------------------------------+
| TIME('2020-04-03 13:11:12.99887766') |
+--------------------------------------+
| 13:11:12.998878 |
+--------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT TIME('2020-04-03 13:11:12');
+-----------------------------+
| TIME('2020-04-03 13:11:12') |
+-----------------------------+
| 13:11:12 |
+-----------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL TIMESTAMP() (0) | 2020.04.04 |
---|---|
MySQL TIMEDIFF() (0) | 2020.04.03 |
MySQL SYSDATE() (0) | 2020.04.03 |
MySQL SUBTIME() (0) | 2020.04.03 |
MySQL SUBDATE() (0) | 2020.04.03 |