Explain Current_Time Function in SQL?

CURRENT_TIME() function in MySQL is used to check the current time. It returns the current time as a value in ‘hh:mm:ss’ or hhmmss format, depending on whether the function is used in string or numeric context.

Syntax :

CURRENT_TIME OR CURRENT_TIME(precision)

Parameter :

This method accepts one parameter.

  • precision –
  • It specifies the returned fractional seconds precision. If the user omits the precision argument, the result will exclude precision.

Returns : It returns the current time.