oracle: column ambiguously defined
分页查询
column ambiguously defined 未明确定义的列
select *
from (select abc.*, rownum m
from (select t.oid,
t.clues_code,
t.clues_name,
t.customer_name,
(select a.fullname
from ecc_prm_areainfo a
where a.ennable_flag = 'T'
and a.oid = t.area) area,
(select to_char(wmsys.wm_concat(o.name))
from ecc_tcm.ecc_prm_program o
where o.enable_flag = 'T'
and o.oid = t.industry) industry,
(select to_char(wmsys.wm_concat(p.product_name))
from ecc_tcm.ecc_prm_product p
where p.enable_flag = 'T'
and t.product = p.product_id) product,
t.flow_type,
cn.flow_oid
from ecc_tcm.table1 t,
where t.clues_state = 2
and t.enable_flag = 'T'
order by clues_code ASC) abc
where rownum <= 10)
where m > 0
这句语句正常
select t.oid,
t.clues_code,
t.clues_name,
t.customer_name,
(select a.fullname
from ecc_prm_areainfo a
where a.ennable_flag = 'T'
and a.oid = t.area) area,
(select to_char(wmsys.wm_concat(o.name))
from ecc_tcm.ecc_prm_program o
where o.enable_flag = 'T'
and o.oid = t.industry) industry,
(select to_char(wmsys.wm_concat(p.product_name))
from ecc_tcm.ecc_prm_product p
where p.enable_flag = 'T'
and t.product = p.product_id) product,
t.flow_type,
cn.flow_oid
from ecc_tcm.table1 t,
where t.clues_state = 2
and t.enable_flag = 'T'
order by clues_code ASC
出错就在
select *
from (select abc.*, rownum m
from abc
where rownum <= 10)
where m > 0
多数是里面的列重复引起的,可以给相同列起别名
oracle: column ambiguously defined相关推荐
- 解决 Oracle column ambiguously defined 的问题
1.案例1: select * from( select aa2.workorder,aa2.*,bb.* from (select distinct t.workorder,t.client,t. ...
- Oracle 查询SQL语句报 ORA-00918: column ambiguously defined(Navicat中)
原有的SQL语句是: SELECT* FROM(SELECTi.ID,i.NAME,i.code,i.num,i.state,i.unit,i.TYPE,i.addtime,i.TIME,i.user ...
- 02 ORA系列:ORA-00918 未明确定义列 column ambiguously defined
如果希望对常见的Oracle异常ORA报错解决方案有系统的了解,请看<ORACLE系列异常总结ORA>. ORA-00918 未明确定义列 column ambiguously defin ...
- column ambiguously defined oracle数据库分页语句查询中select嵌套时出错
column ambiguously defined &oracle数据库分页语句查询中select嵌套时出错 转载于 [ lev草梦的博客](http://blog.sina.com.cn/ ...
- Oracle “column ambiguously defined ” 错误
在Oracle中执行查询,有时候会报错"column ambiguously defined ",中文意思是字段定义模糊.报错如下图: 这个错误通常是由于FROM的两个表中都有某个 ...
- oracle 报错 column ambiguously defined
column ambiguously defined ORA-00918: column ambiguously defined java.sql.SQLException: ORA-00918: c ...
- Oracle报错“ORA-00918:column ambiguously defined”
一.现象描述 ORA-00918:column ambiguously defined,从字面上理解就是:未明确定义的列. 当出现这种SQL语句的时候就会出现:select t.* from (sel ...
- oracle column ambiguously defined
[color=red]问题:[/color]数据查询出现 column ambiguously defined 异常 [color=red]原因:[/color]当前sql语句,存在多表查询,查询的结 ...
- [Hibernate]column ambiguously defined异常
使用Hibernate的NativeSQL写了一个查询语句,但是后台报了SQL语法错误,具体报错如下: [2012-08-08 12:55:00] ERROR -> ORA-00918: col ...
最新文章
- 4.通过Ubuntu指令生成GIF图片
- YOLOv5发布第六个版本,支持一键适配OpenVINO/OpenCV DNN部署
- [2018HN省队集训D8T1] 杀毒软件
- linux线程多参数传递参数,Linux中多线程编程并传递多个参数
- (转)Spring的三种实例化Bean的方式
- 【Unity Shaders】Lighting Models —— 灯型号Lit Sphere
- WINDOWS NPAPI插件小结
- 空间数据库学习笔记(四):空间引用标识符(SRID)
- 【转载】VGA视频信号详解
- python可以用于工业机器人编程与操作_如何实现工业机器人编程抓取
- 手机知识:手机OTG知识介绍,看完你就懂了
- 第二章 计算机系统和计算机组成原理
- 历史大盘跌停记录,2016大盘跌停原因
- 英语听力采用计算机化考试,高考英语听力机考12问——访北京教育考试院有关负责人...
- Windows10修改Users下的用户文件夹名
- win10解决没有照片查看器的办法
- Games101 笔记 Lecture 7-9 Shading (Illumination, Shading)
- 常用函数+星期+月份+缩写+四季
- “四”才是中国人的吉祥数字!
- 笔记本越用越慢的解决方法。
热门文章
- 使用前端JS上传文件到阿里云的OSS服务器,PHP生成STS临时访问凭证
- DataList_ItemDataBound常用方法
- mysql 退出当前命令行
- 未将对象引用设置为对象 UiPath 的实例
- suse 调整分区_【suse】挂载硬盘,磁盘分区方法
- 华为桌面计算机丢了,电脑数据丢失怎么办?手把手教你如何恢复删除的文件
- 真的来了!百度文心一言APP在哪里下载?跟网页版有什么区别?
- 我为什么建议大家玩知乎
- HTML+CSS+JS网页设计期末课程大作业——多用途的图文展示博客HTML模板(16页) 学生DW网页设计作业成品 web课程设计网页规划与设计 计算机毕设网页设计源码...
- HEIC转JPG、PNG、BMP方法