Postgresql 时间相减求 秒、分、小时数

前端之家收集整理的这篇文章主要介绍了Postgresql 时间相减求 秒、分、小时数前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
select a.*,b.login_name,b.user_name,c.cat_name from sec.t_post_message a,sec.t_user b,sec.t_comm_cfg c where a.user_id=b.id and a.type_id=c.cat_id and inpool='0' and time_type='1' and abs((EXTRACT(EPOCH from LOCALTIMESTAMP(0))-EXTRACT(EPOCH from cast(a.send_date||' '||a.send_time||':00' as timestamp(0))))/60)<5 原文链接:https://www.f2er.com/postgresql/196293.html

猜你在找的Postgre SQL相关文章