我有一个库中的表,为什么select 一个字段就报ORA-00904错误
2016-07-18
展开全部
where 语句后面,"入职天数"是一个别名,不能用在这里。
select * from
( select ename,sal,trunc(sysdate-hiredate) as "入职天数" from scott.emp where sal<=1200 ) a where "入职天数">=10000 order by sal,"入职天数";
select * from
( select ename,sal,trunc(sysdate-hiredate) as "入职天数" from scott.emp where sal<=1200 ) a where "入职天数">=10000 order by sal,"入职天数";
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询