입양 시각 구하기(2)
변수로 반복문 만들기
@
:=
;
set @h = -1; select (@h := @h+1) as HOUR , ( select count(*) from ANIMAL_OUTS where HOUR(DATETIME) = @h )as COUNT from ANIMAL_OUTS where @h < 23