2

我正在使用 Oracle 8i。当我尝试在下面的脚本中运行此脚本时,我收到错误 ora-00923 from keyword not found where expected 。

请找到我正在使用的以下查询。

select i.siid, 
       sp.access_point_status, 
       csp.id_number, 
       act.entry_time, 
       act.addnl_info, 
       row_num() over (partition by i.siid order by act.entry_time desc)  act_row 
from  table_Service_point sp,
      table_case_to_service_point csp,
      table_case cs, 
      table_act_entry act, 
      (select distinct siid, 
              iopt.installedopts2axspoint
       from table_installed_options iopt, 
            tmp_efms_clarify inp 
       where iopt.siid = inp.service_instance 
         and iopt.siid = 'DSL580155-105-1') i 
where sp.objid = csp.case2servicepoint 
  and csp.id_number = cs.id_number 
  and cs.objid = act.act_entry2case 
  and sp.objid = i.installedopts2axspoint
4

3 回答 3

1

尝试使用 row_number() 而不是 row_num()。

于 2015-11-04T07:21:50.507 回答
0

单引号''表示,oracle不是。charactersnames

代替

iopt.siid='DSL580155-105-1'

iopt.siid="DSL580155-105-1"
于 2015-11-04T06:57:01.393 回答
0

我确实认为row_number()是正确的拼写,而不是row_num()。谷歌它以了解更多关于它是如何工作的。而且,只是提醒一下,DSL580155-105-1实际上是一个专栏吗?

于 2019-08-16T18:08:24.927 回答