答案 0 :(得分:1)
假设Hora包含varchar值18:06:02,而Duracao包含varchar值00:00:05,则可以将它们转换为DATETIME
,然后像这样添加它们:
SELECT CONVERT(
VARCHAR(8),
DATEADD(
SECOND,
DATEDIFF(SECOND, 0, CAST(Duracao AS DATETIME)),
CAST(Hora AS DATETIME)
),
108
)