ORA-00918: 未明确定义列 出现问题原因及解决办法。
--正常写,结果带上表名的字段在处理后表头名称相同,在进行下一次嵌套时就会出现问题
select au.userxm,au01.userxm
from app_user au,app_user au01,qt_info qi
where qi.user_id=au.user_id
and qi.qt_user_id=au01.user_id
--出现问题,常常是在处理数据的控件自动加上的
select * from (
select au.userxm,au01.userxm
from app_user au,app_user au01,qt_info qi
where qi.user_id=au.user_id
and qi.qt_user_id=au01.user_id
)
--解决办法,加上别名
select * from (
select au.userxm,au01.userxm as userxm111111111111
from app_user au,app_user au01,qt_info qi
where qi.user_id=au.user_id
and qi.qt_user_id=au01.user_id
)