Open topic with navigation
Returns the hour part of the datetime or time.
HOUR(datetime)
SELECT HOUR("2020-06-20 10:02:00");
The above query returns 10.
Copyright © 2002-2025. Cloud Software Group, Inc. All Rights Reserved.