CURTIME(), CURRENT_TIME, CURRENT_TIME(), SYS_TIME, SYSTIME는 모두 동일하며, 현재 시간을 TIME 타입(HH:MI:SS)으로 반환한다. 산술 연산의 단위는 초(sec)다.
CURTIME()
CURRENT_TIME
CURRENT_TIME()
SYS_TIME
SYSTIME
--it returns the current time in TIME type
SELECT CURTIME(), CURRENT_TIME(), CURRENT_TIME, SYS_TIME, SYSTIME;
SYS_TIME SYS_TIME SYS_TIME SYS_TIME SYS_TIME
=================================================================
04:37:34 PM 04:37:34 PM 04:37:34 PM 04:37:34 PM 04:37:34 PM
--it returns the time value 1 hour added to the current sys_time
SELECT CURTIME()+3600;
SYS_TIME +3600
=================
05:37:34 PM