set @gourpmi = 5
select cast(floor(cast(时间 as float)2460/gourpmi)gourpmi/60/24 as smalldatetime),SUM(字段),Count(字段)
from tb
group by cast(floor(cast(时间 as float)2460/gourpmi)gourpmi/60/24 as smalldatetime)
2024-01-22 20:56:22
set @gourpmi = 5
select cast(floor(cast(时间 as float)2460/gourpmi)gourpmi/60/24 as smalldatetime),SUM(字段),Count(字段)
from tb
group by cast(floor(cast(时间 as float)2460/gourpmi)gourpmi/60/24 as smalldatetime)