如何取得当前时间与数据库时间的小时差?我用了两种方法都不行:1、select datediff(hh,now,变量时间) from 表名2、if datediff(hh, now,变量时间)>10 then[解决办法]select (变量时间-sysdate)*24 from dual;