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相关推荐

  1. 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 ...

  2. Oracle “column ambiguously defined ” 错误

    在Oracle中执行查询,有时候会报错"column ambiguously defined ",中文意思是字段定义模糊.报错如下图: 这个错误通常是由于FROM的两个表中都有某个 ...

  3. Oracle报错“ORA-00918:column ambiguously defined”

    一.现象描述 ORA-00918:column ambiguously defined,从字面上理解就是:未明确定义的列. 当出现这种SQL语句的时候就会出现:select t.* from (sel ...

  4. SQL报错: > ORA-00918: column ambiguously defined

    SQL执行出错: 项目场景:编写SQL语句时,使用外连接或嵌套查询结果时,报错 ORA-00918: column ambiguously defined Cause: java.sql.SQLExc ...

  5. django进入admin报错ORA-00918:column ambiguously defined

    运行创建好的django项目,以"http://127.0.0.1"访问,成功显示小火箭页面,但当访问"http://127.0.0.1/admin"时报错,错 ...

  6. oracel 报错ORA-00918: column ambiguously defined

    问题描述 ORA-00918: column ambiguously defined 问题原因 字段问题,在2个表里有相同的名字,需要给字段加上表名

  7. 解决 Oracle column ambiguously defined 的问题

    1.案例1: select * from( select aa2.workorder,aa2.*,bb.* from (select  distinct t.workorder,t.client,t. ...

  8. column ambiguously defined oracle数据库分页语句查询中select嵌套时出错

    column ambiguously defined &oracle数据库分页语句查询中select嵌套时出错 转载于 [ lev草梦的博客](http://blog.sina.com.cn/ ...

  9. oracle column ambiguously defined

    [color=red]问题:[/color]数据查询出现 column ambiguously defined 异常 [color=red]原因:[/color]当前sql语句,存在多表查询,查询的结 ...

最新文章

  1. C++在构造函数中调用构造函数
  2. git reset用法
  3. 【转】简述TCP的三次握手过程
  4. 想实现高德/百度示例中 源代码编辑器+效果预览
  5. 模块之hashlib模块
  6. 看日本如何用IoT打造智能工厂
  7. A Spy in the Metro UVA - 1025
  8. php排序条件两个,php – 在两个条件下排序数组
  9. utilities——比较与排序规则(C++)
  10. python合并表格_python合并表格sheets
  11. qml设置Text中的文字居中(不是整个Text居中)
  12. LoadRunner脚本日志定位问题案例
  13. ajxa TypeError: $.ajax is not a function
  14. mysql时间函数now()_获得当前日期时间的mysql函数now()
  15. ie8兼容性视图灰色修复_win8系统设置IE8浏览器兼容性视图的方法
  16. erf和erfc函数
  17. HTML5与flash播放器
  18. 紧贴潮流,初心未改:OpenInfra Days China升级回归,打造专属OpenStackers的开源大趴
  19. 向PSRAM中写入、读取数据
  20. 华为matebooke升级鸿蒙,由华为MateBook E引发的猜测:ARM+鸿蒙OS改变笔记本的未来...

热门文章

  1. 【递归】整数划分(C++)
  2. 认知计算导论笔记——江湖救急版
  3. Python 动态规划理解
  4. 第11届蓝桥杯省赛真题剖析-2020年6月21日Scratch编程初中级组
  5. 【轻松学习】教你十分钟学会Python函数式编程
  6. Word中常用快捷键Ctrl+字母的常快捷键
  7. 小白测试系列:badboy默认浏览器修改
  8. PowerPoint绘图笔不能用
  9. 321分排第二?985中山大学计算机考研超级爆冷?
  10. 【人事】那些行为会让面试失败?