报这个错误的原因在于选出的结果集中包含相同的字段,数据库不知道应该以哪个字段为准。
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 RNfrom qcres qwhere q.jslongitude_gps is nulland q.jslatitude_gps is nulland q.jslongitude_amap oracle账号is not nulland q.jslatitude_amap is not null) Uwhere RN 40
如上出现了两个相同的gpslatitude ,那么数据库就无法获知应该获取哪个字段。