Loading lesson path
Concept visual
Start at both ends
Return the hour part of a datetime: SELECT HOUR("2017-06-20 09:34:00");
The HOUR() function returns the hour part for a given date (from 0 to 838).
datetime )
Required. The datetime value to extract the hour from
From MySQL 4.0
Return the hour part of a datetime: SELECT HOUR("838:59:59");
❮ MySQL Functions