C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL CURRENT_TIME() FunctionThe current_time() is a MySQL date/time function. It is used to get the current time. Syntaxselect current_time(); ParametersNA ReturnsThis function will return the current time. It will return the current time as an 'HH:MM:SS' format if used in a string context. It will return the current time as an HHMMSS format if used in a numeric context. Example 1select current_time(); Output: Example 2select current_time()+2; Output:
Next TopicMySQL date/time
|