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