当前位置: 代码迷 >> 综合 >> Postgresql Interval 转成秒
  详细解决方案

Postgresql Interval 转成秒

热度:54   发布时间:2023-12-15 20:45:23.0

1、select EXTRACT(EPOCH FROM (now() - fg_last_retrive_time)) as diff,fg_last_retrive_status from tg_reader where fg_reader_ip ='128.31.188.46' ;


2、select date_part('epoch',(now() - fg_last_retrive_time),fg_last_retrive_status from tg_reader where fg_reader_ip ='128.31.188.46' ;

  相关解决方案