当前位置: 移动技术网 > IT编程>数据库>Oracle > oracle报未明确定义列

oracle报未明确定义列

2018年04月05日  | 移动技术网IT编程  | 我要评论

报这个错误的原因在于选出的结果集中包含相同的字段,数据库不知道应该以哪个字段为准。

select U.*

from (select q.jslongitude_gps as **gpslatitude**,q.jslatitude_gps as **gpslatitude**,q.jslongitude_amap as lontitude,q.jslatitude_amap as latitude, ROWNUM RN

from qcres q

where q.jslongitude_gps is null

and q.jslatitude_gps is null

and q.jslongitude_amap is not null

and q.jslatitude_amap is not null) U

where RN 40

如上出现了两个相同的gpslatitude ,那么数据库就无法获知应该获取哪个字段。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网