MariaDB has an HOUR()
function that extracts the hour portion from a time value. MariaDB also has an EXTRACT()
function that can also extract the hour portion from a time value.
However, these functions don’t always return the same result.
Read on to see the difference between HOUR()
and EXTRACT(HOUR FROM ...)
in MariaDB.