码迷,mamicode.com
首页 > 数据库 > 详细

oracle 未明确定义错误

时间:2015-12-25 22:24:45      阅读:180      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!