簡體   English   中英

sql oracle中的無效標識符

[英]Invalid identifier in sql oracle

我是oracle sql的新手。 而且我的腳本有錯誤。 我不知道怎么了 我檢查了所有可能導致錯誤的內容。 請幫我..

這是腳本:

insert into antifraud(case_number,monitored_date,trigger1,trigger2,contract_number,description)
select a.col1 as case_number, a.col2 as monitored_date
  ,a.col3 as trigger1, a.col4 as trigger2
  ,a.col15 as contract_number, a.col6 as description
from (
select length(t.col2),(row_number() over (order by id)) as ord,t.*
from app_account.params p
inner join app_account.import_temp t on p.guid=t.reference
order by t.id
) a
left join antifraud et
on a.contract_number=et.contract_number
and a.trigger1=et.trigger1
and a.trigger2=et.trigger2
and a.monitored_date=et.monitored_date
where a.ord>3
and et.contract_number is null;

錯誤:

SQL Error: ORA-00904: "A"."MONITORED_DATE": invalid identifier
00904. 00000 -  "%s: invalid identifier"
and a.monitored_date=et.monitored_date

應該

and a.col2=et.monitored_date

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM