【发布时间】:2021-05-31 21:05:02
【问题描述】:
SELECT time_in,time_out
FROM appointment_trainer;
我想计算它,例如 08:00:00 - 07:30:00 = 0.3 小时?可以在 postgresql 中使用吗?
【问题讨论】:
-
8:00 和 7:30 之间的差异不是 0.3h 而是 0.5。你想要 0h 30min 还是 0.5h?
标签: postgresql time timestamp