Oracle ORA-00904:invalid identifier 标识符无效
2017-11-25 15:35
1101 查看
错误如下:
错误原因:
内层查出的字段别名使用了,双引号。
当外层要调用里层的字段时,里层字段别名不能使用双引号。
比如将 report.fid as "reportId" 改为 report.fid as reportId 就可以了
正确写法如下:
select temp.reportId,temp.status,temp.detail
from (select report.fid as reportId,
report.ftransactionstatus as status,
report.ftenementdetail as detail
from t_trade_transactionreport report) temp;
错误原因:
内层查出的字段别名使用了,双引号。
当外层要调用里层的字段时,里层字段别名不能使用双引号。
比如将 report.fid as "reportId" 改为 report.fid as reportId 就可以了
正确写法如下:
select temp.reportId,temp.status,temp.detail
from (select report.fid as reportId,
report.ftransactionstatus as status,
report.ftenementdetail as detail
from t_trade_transactionreport report) temp;
相关文章推荐
- Oracle-数据库建表报错ORA-00904:invalid identifier标识符无效
- 解决ORA-00904: invalid identifier标识符无效
- 关于oracle下提示ORA-00904:Invalid identifier错误的问题
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- 在ORACLE中创建表时显示ORA-00904无效的标识符
- ORA-00904:标识符无效 oracle view 列名 大小写问题
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- oracle中出现ORA-00904: : 某字段 标识符无效问题
- Oracle MERGE raise ORA-00904 无效的标识符
- Oracle ORA-00904: 无效的标识符
- oracle insert数据标识符无效问题 oracle ORA-00904: "字段名": 标识符无效
- Oracle ORA-00904标识符无效
- oracle“ORA-00904”错误:标识符无效几种可能情况
- oracle ORA-00904无效的标识符
- EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- [Oracle]查看SQL的执行计划 - AUTOTRACE,遇到错误ORA-00904: "OTHER_TAG": 标识符无效
- ORACLE 数据库表字段查询报错之ORA-00904:invalid identifier
- [转]Oracle dblink调用函数报ORA-00904 标识符无效
- 【Oracle】切换数据库报错:SQLSyntaxErrorException: ORA-00904: "SYSRESOURC0_"."SENDORNOT": 标识符无效