从CSV导入的数据的SQLite时间格式问题。多个尾随零

I was trying to query the duration of a WWE wrestler in the matches which he won and here I have successfully retrieved the data: A lot of trailing zeros after seconds

我想删除这些零,并尝试了以下代码:

strftime(%H:%M:%S, R1.time_in_match)

这不起作用并给出以下错误:

 ': near "%": syntax error 

我导入的数据来自将时间存储为时间对象的数据框,并将其作为类型DATETIME放入数据库。在“ time_in_match”字段上使用的typeof函数返回类型TEXT。

我想知道是否有任何方法可以格式化时间。

谢谢!