SELECT * ,CONVERT(INT,progress)%60 ,CONVERT(VARCHAR(10),(case when (CONVERT(INT,progress)%60)>9 then (CONVERT(DECIMAL,progress)%60) else '012' end)) from CourseBooksNotes DECLARE @a int=05 SELECT CONVERT(VARCHAR(10),@a/60)+'分'+CONVERT(VARCHAR(10),@a%60)+'秒'; SELECT CONVERT(VARCHAR(10),@a/3600)+'时'+CONVERT(VARCHAR(10),@a%3600/60)+'分'+CONVERT(VARCHAR(10),@a%3600%60)+'秒'