postgre 計算兩個日期相減

date_part('day', cast(time1 as TIMESTAMP)- cast(time2 as TIMESTAMP))    select date_part('day', current_date - UPDATE_PWD_DATE )  from pure_user;  
相關文章
相關標籤/搜索