沒有查到units,從來沒有見過這個啊
解决方案 »
- 登陆oracle 9i,提示我TNS没有监听器,但是TNS启动了,并且lsnrctl status状态正常
- 求组!~redo log file缓冲区!!
- java.sql.SQLException: Cursor is closed.
- 查询重复记录问题
- oracle 10g用sysdba身份无法登录!
- 奇怪的ORACLE客户端连接问题
- 我启动了OMS,但是备份时提示“没有为该节点设置身份证明?”怎么设置啊?
- 修改参数后的问题!
- 令我彻夜难眠的Oracle9iAS安装问题,请大虾倾力相助,此致,敬礼!!
- Oracle使用Order By后性能缓慢
- 事关饭碗,求助7.3.4 连接 9i 数据库怎么创建 db_link
- 问个查询的问题
Contains a description that qualifies the parameter value, such as percent or dollars
Parameter.Units [= value]ParameterAn object variable that describes a parameter for a command relationship.valueA returned string that represents the description of the parameter value.
FROM ...
WHERE (t_amp.id = t_sums.id ) and
((CURRENT-t_amp.edt-t_amp.sdt units hour) >=0 units hour ) and
((CURRENT-t_sums.edt-t_sums.sdt units hour) <=0 units hour )
...
这是Informax的用法,别人的程序,不知道什么意思,我想知道用标准sql怎样写。在Informax区没人能答,所以找oracle区的高手了,呵呵
那么((CURRENT-t_amp.edt-t_amp.sdt units hour) >=0 units hour )的意思就是:当前时间-t_amp.edt-t_amp.sdt 的结果精确到小时(或者是:换算成小时)> 0(这个0是一个以小时为单位的时间值)但愿我理解的正确,如果按照这个意思,标准sql应该怎样写?
select sysdate-to_date('2003-03-05','yyyy-mm-dd')*24 from dual
时间1 - 时间2 - 整数(units hour:把这个整数转换为小时数) >= 0(units hour:把0转换为小时数与前面比较)这个sql怎样写?
就是取 当前时间与数据库纪录时间的差 大于n小时的sql的写法!
========================================================
假设表test有time1字段,为date类型select * from test where (sysdate-time1)*24 > n;