select cast(round(cast(date_part('epoch', '10:30'::time - '10:10'::time)/60/60 as numeric ),1)as varchar);
详细解决方案
postgres计算两个时间的时间差(小时)
热度:83 发布时间:2024-02-21 02:23:05.0
select cast(round(cast(date_part('epoch', '10:30'::time - '10:10'::time)/60/60 as numeric ),1)as varchar);