일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Date and Time Functions
- 전자정부 표준프레임워크
- MySQL
- Sring Functions and Operators
- String Functions and Date Operators
- Date and Time Function
- 티베로
- Tibero
- HTTP
- String Function and Operators
- Data and Time Functions
- 오라클
- 전자정부표준프레임워크
- 방화벽
- SVN
- 윈도우
- Oracle
- String Functions and Operators
- Today
- Total
웹이야기
MySQL MICROSECOND() 본문
MySQL 날짜함수, 시간함수
MICROSECOND()
- 시간으로부터 microsecond 를 return 해준다.
MICROSECOND(expr)
의 형태
Returns the microseconds from the time or datetime expression expr as a number in the range from 0 to 999999.
mysql> SELECT MICROSECOND(NOW());
+--------------------+
| MICROSECOND(NOW()) |
+--------------------+
| 0 |
+--------------------+
1 row in set (0.00 sec)
mysql> SELECT MICROSECOND('2019-02-02 :12;35:56');
+-------------------------------------+
| MICROSECOND('2019-02-02 :12;35:56') |
+-------------------------------------+
| 0 |
+-------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT MICROSECOND('2019-02-02 :12;35:56.111111');
+--------------------------------------------+
| MICROSECOND('2019-02-02 :12;35:56.111111') |
+--------------------------------------------+
| 111111 |
+--------------------------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL MONTH() (0) | 2020.04.02 |
---|---|
MySQL MINUTE() (0) | 2020.04.02 |
MySQL MAKETIME() (0) | 2020.04.02 |
MySQL MAKEDATE() (0) | 2020.04.02 |
MySQL LOCALTIME() (0) | 2020.04.02 |