繁体   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