oracle 报错 column ambiguously defined
column ambiguously defined
ORA-00918: column ambiguously defined
java.sql.SQLException: ORA-00918: column ambiguously defined
ORA-00918: column ambiguously defined。中文名称:未明确定义的列!
可能定义了两个相同的列
你找找你后面的t里面是不是有两个相同的列,我也是这个问题,就是多了一个相同的列的查询,所以sb了..
我出错的sql语句是
select *
from (select rownum as seq, t.*
from (select item_code,
item_abv,
order_no,
unit_name,
assist_unit_name,
mb_qty,
inspection_qty,
mi_qty,
assist_mi_qty,
mo_qty,
assist_mo_qty,
on_hand_qty,
assist_qty,
ma_qty,
assist_ma_qty
assist_ma_qty -- 这一行出错了,列写重复了(删掉 运行,就ok啦)
-- assist_ma_qty as assist_ma_qty2 -- 不想删掉就这样写
from inv_book_master) t
where rownum <= 10)
where seq > 0
或者你参考 我的另一个帖子,教你怎么换一种方式rownum 分页,http://hi.baidu.com/ae6623/item/aaa12115f2e4ca09e75c3635
转载于:https://www.cnblogs.com/ae6623/archive/2013/02/17/4416590.html
oracle 报错 column ambiguously defined相关推荐
- 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 ...
- Oracle “column ambiguously defined ” 错误
在Oracle中执行查询,有时候会报错"column ambiguously defined ",中文意思是字段定义模糊.报错如下图: 这个错误通常是由于FROM的两个表中都有某个 ...
- Oracle报错“ORA-00918:column ambiguously defined”
一.现象描述 ORA-00918:column ambiguously defined,从字面上理解就是:未明确定义的列. 当出现这种SQL语句的时候就会出现:select t.* from (sel ...
- SQL报错: > ORA-00918: column ambiguously defined
SQL执行出错: 项目场景:编写SQL语句时,使用外连接或嵌套查询结果时,报错 ORA-00918: column ambiguously defined Cause: java.sql.SQLExc ...
- django进入admin报错ORA-00918:column ambiguously defined
运行创建好的django项目,以"http://127.0.0.1"访问,成功显示小火箭页面,但当访问"http://127.0.0.1/admin"时报错,错 ...
- oracel 报错ORA-00918: column ambiguously defined
问题描述 ORA-00918: column ambiguously defined 问题原因 字段问题,在2个表里有相同的名字,需要给字段加上表名
- 解决 Oracle column ambiguously defined 的问题
1.案例1: select * from( select aa2.workorder,aa2.*,bb.* from (select distinct t.workorder,t.client,t. ...
- column ambiguously defined oracle数据库分页语句查询中select嵌套时出错
column ambiguously defined &oracle数据库分页语句查询中select嵌套时出错 转载于 [ lev草梦的博客](http://blog.sina.com.cn/ ...
- oracle column ambiguously defined
[color=red]问题:[/color]数据查询出现 column ambiguously defined 异常 [color=red]原因:[/color]当前sql语句,存在多表查询,查询的结 ...
最新文章
- C++在构造函数中调用构造函数
- git reset用法
- 【转】简述TCP的三次握手过程
- 想实现高德/百度示例中 源代码编辑器+效果预览
- 模块之hashlib模块
- 看日本如何用IoT打造智能工厂
- A Spy in the Metro UVA - 1025
- php排序条件两个,php – 在两个条件下排序数组
- utilities——比较与排序规则(C++)
- python合并表格_python合并表格sheets
- qml设置Text中的文字居中(不是整个Text居中)
- LoadRunner脚本日志定位问题案例
- ajxa TypeError: $.ajax is not a function
- mysql时间函数now()_获得当前日期时间的mysql函数now()
- ie8兼容性视图灰色修复_win8系统设置IE8浏览器兼容性视图的方法
- erf和erfc函数
- HTML5与flash播放器
- 紧贴潮流,初心未改:OpenInfra Days China升级回归,打造专属OpenStackers的开源大趴
- 向PSRAM中写入、读取数据
- 华为matebooke升级鸿蒙,由华为MateBook E引发的猜测:ARM+鸿蒙OS改变笔记本的未来...