只显示没有日期的小时和分钟

Show only hours and minutes without date

我有一个显示日期和时间的列 (DD/MM/YY HH:mm),但我只需要小时和分钟。

我试过短连接方式:

concat(date_part('hour', start_time),':',date_part('minute', start_time)) AS “开始时间”

但我在几分钟内只得到一个数字,没有 0 例如“21.3”而不是“21.30”

你有什么建议吗?

谢谢。

如果您使用的是 PostgreSQL,那么此查询将有效:

concat(TO_CHAR(start_time,'HH'),':',TO_CHAR(start_time,'MM')) AS "Start time"