SET @HOUR = -1;
SELECT (@HOUR := @HOUR +1) AS HOUR ,(SELECT COUNT(*) FROM ANIMAL_OUTS WHERE hour(DATETIME) = @HOUR) AS COUNT
TRUNCATE(숫자,N)