现在的位置: 首页 > 综合 > 正文

Oracle取时间间隔

2012年04月10日 ⁄ 综合 ⁄ 共 122字 ⁄ 字号 评论关闭

如果是Date型,直接t2-t1,就可以了。

如果是timestamp,如果取间隔的秒数to_number(substr( (endtime-starttime) * 24 * 60 * 60,0,instr((endtime-starttime),' ')))

抱歉!评论已关闭.