首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sql oracle中的无效标识符

sql oracle中的无效标识符
EN

Stack Overflow用户
提问于 2014-02-28 04:07:46
回答 1查看 689关注 0票数 0

我是oracle sql的初学者。我的剧本出现了错误。我不知道怎么回事。我检查所有可能导致错误的地方。请帮帮我..。

下面是剧本:

代码语言:javascript
复制
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;

错误:

代码语言:javascript
复制
SQL Error: ORA-00904: "A"."MONITORED_DATE": invalid identifier
00904. 00000 -  "%s: invalid identifier"
EN

Stack Overflow用户

回答已采纳

发布于 2014-02-28 04:23:34

代码语言:javascript
复制
and a.monitored_date=et.monitored_date

应该是

代码语言:javascript
复制
and a.col2=et.monitored_date
票数 1
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22085980

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档