从Postgres到Oracle的迁移“间隔”

时间:2019-11-06 19:53:02

标签: oracle date date-arithmetic

我正在尝试将以下Postgres查询转换为oracle。在强制转换为间隔时有问题。关于如何在sql中强制转换为间隔的任何建议

select distinct product_id as late_id, 
       date_trunc('day',(end_timestamp  + CAST(CAST (pkg_valid_for*86400 as Text ) as interval))) as fileExpiration, 
        (CAST(now()as date) + integer '14') as day15fromnow  
from product_details d, dist_audit da

0 个答案:

没有答案