标签: java jpa orm
select (current_timestamp - s.visitDate) from Staff as s 我有列(日期),并希望计算时间与当前时间的差异(最好是几分钟)。试过我select (current_timestamp - s.visitDate)/60 from Staff as s这个JPA查询没有给我想要的结果吗?
select (current_timestamp - s.visitDate) from Staff as s
select (current_timestamp - s.visitDate)/60 from Staff as s