입양시각구하기2.md
set @hour = -1;
select
(@hour := @hour + 1) as 'HOUR',
(
select count(*)
from animal_outs
where HOUR(datetime) = @hour
) as 'COUNT'
from animal_outs
where @hour < 23Last updated
set @hour = -1;
select
(@hour := @hour + 1) as 'HOUR',
(
select count(*)
from animal_outs
where HOUR(datetime) = @hour
) as 'COUNT'
from animal_outs
where @hour < 23Last updated