关于sql 在oracle 上创建视图的简单问题!请看代码!
1createviewv$_dept_avg_sal_infoas2selectdeptno,grade,avg_salfrom3(selectdeptno,avg(sa...
1 create view v$_dept_avg_sal_info as
2 select deptno,grade,avg_sal from
3 (select deptno,avg(sal) avg_sal from emp group by deptno) t
4* join salgrade s on (t.avg_sal betweens.losal and s.hisal);
join salgrades on (t.avg_sal between s.losal and s.hisal);
*
第 4 行出现错误:
ORA-00911: 无效字符 展开
2 select deptno,grade,avg_sal from
3 (select deptno,avg(sal) avg_sal from emp group by deptno) t
4* join salgrade s on (t.avg_sal betweens.losal and s.hisal);
join salgrades on (t.avg_sal between s.losal and s.hisal);
*
第 4 行出现错误:
ORA-00911: 无效字符 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询