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 |
Tags
- HTTP
- Tibero
- String Functions and Operators
- 전자정부 표준프레임워크
- Date and Time Functions
- MySQL
- 윈도우
- 방화벽
- Sring Functions and Operators
- Data and Time Functions
- String Function and Operators
- Oracle
- Date and Time Function
- String Functions and Date Operators
- 티베로
- 전자정부표준프레임워크
- SVN
- 오라클
Archives
- Today
- Total
웹이야기
MySQL CURTIME() 본문
MySQL 날짜함수, 시간함수
CURTIME()
- 현재시간을 return 해주는 함수
- 문자열 형태, 또는 numeric 형태로 return.
CURTIME([fsp])
의 형태
Returns the current time as a value in 'hh:mm:ss' or hhmmss format, depending on whether the functions is used in string or numeric context. The value is expressed in the session time zone.
In the fsp argument is given to speicify a fractional seconds precision from 0 to 6, the return value includes a fractional seconds part of that many digits.
mysql> SELECT CURTIME();
+-----------+
| CURTIME() |
+-----------+
| 14:52:14 |
+-----------+
1 row in set (0.01 sec)
mysql> SELECT CURTIME()+0;
+-------------+
| CURTIME()+0 |
+-------------+
| 145226 |
+-------------+
1 row in set (0.00 sec)
Comments