前提为oracle数据库:
select (sysdate-userdate)*24 from user --计算小时差 select (sysdate-userdate)*24*60 from user --计算分钟差 select (sysdate-userdate)*24*60*60 from user --计算秒差
前提为oracle数据库:
select (sysdate-userdate)*24 from user --计算小时差 select (sysdate-userdate)*24*60 from user --计算分钟差 select (sysdate-userdate)*24*60*60 from user --计算秒差