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_num() の代わりに row_number() を使用してみてください。

于 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()。仕組みの詳細については、Google で検索してください。また、念のために言っておきますが、DSL580155-105-1実際にはコラムですか?

于 2019-08-16T18:08:24.927 に答える