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