orcl中查询两个时间的差值(包括时分秒)

在网上搜索到的方法是这样的      (注:oracle时间差是以天数为单位,所以换算成年月,日)       select floor(to_number(sysdate-to_date('2007-11-02 15:55:03','yyyy-mm-dd hh24:mi:ss'))/365) as spanYears from dual        //时间差-年       select c
相关文章
相关标签/搜索