首页 > 数据库技术 > 详细

oracle 未明确定义错误

时间:2015-12-25 22:22:44      阅读:171      评论:0      收藏:0      [点我收藏+]
select sysuser1.*
  from (select sysuser2.*, rownum rownum_temp
          from (select yycgdmx.id yycgdmxid,
                   --  yycgdmx.zbjg,
                       yycgdmx.jyjg,
                       yycgdmx.cgl,
                       yycgdmx.cgje,
                       yycgdmx.cgzt,
                       (select dictinfo.info
                          from dictinfo
                         where dictinfo.typecode = 011
                           and dictinfo.dictcode = yycgdmx.cgzt) cgztmc,
                       useryy.mc useryymc,
                       useryy.id useryyid,
                       usergys.mc usergysmc,
                       usergys.id usergysid,
                       ypxx.id,
                       ypxx.bm,
                       ypxx.mc,
                       ypxx.jx,
                       ypxx.gg,
                       ypxx.zhxs,
                       ypxx.scqymc,
                       ypxx.spmc,
                   --    ypxx. zbjg,
                       ypxx.jyzt,
                       (select info
                          from dictinfo
                         where ypxx.jyzt = dictcode
                           and typecode = 003) jyztmc
                  from yycgdmx2015 yycgdmx,
                       yycgd2015   yycgd,
                       ypxx,
                       useryy,
                       usergys
                 where yycgdmx.yycgdid = yycgd.id
                   and yycgd.useryyid = useryy.id
                   and yycgdmx.ypxxid = ypxx.id
                   and yycgdmx.usergysid = usergys.id
                   and yycgdmx.yycgdid = 2015100000) sysuser2
         where rownum <= 20) sysuser1
 where sysuser1.rownum_temp > 0
未明确定义列 
sysuser2.*   *中 有 有列名重复
导致 不知道 外层 选哪一个列 

  

oracle 未明确定义错误

原文:http://www.cnblogs.com/freed0m/p/5077119.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!