C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL Hour() FunctionThe from_days() is a MySQL date/time function. It is used to get the hour from the given datetime. Syntaxselect hour(datetime); Parameter:Datetime: datetime value for getting hour. Returns:This function returns the hour portion of a date value. Example 1Select hour('2018-09-26 11:19'); Output: Example 2Select hour('2018-09-26 11:19:25'); Output:
Next TopicMySQL date/time
|