DAY
HOUR
MINUTE
Returns the hour.
HOUR(time)
Enter values below to update the example in real time.
created_at
order_count
orders
-- 시간대별 주문량 SELECT HOUR(created_at) AS hour, COUNT(*) AS order_count FROM orders GROUP BY hour ORDER BY hour;