declare @seconds int;
set @seconds=7264;
select 
CONVERT(varchar(50),(@seconds /3600))+' h '+
CONVERT(varchar(50),(@seconds%3600)/60)+' m '+
CONVERT(varchar(50),(@seconds%3600)%60)+' s'
2h1m4s


本文转载:CSDN博客