摘要: 1、如果没有安装telnetyum install -y xinetd telnet telnet-server systemctl enable telnet.socket systemctl restart telnet.socket systemctl enable xinetd system 阅读全文
posted @ 2020-10-20 17:28 貔貅526 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1、启动 SQL> startupORA-01081: cannot start already-running ORACLE - shut it down first 2、登录SCOTT用户,注意空格,SCOTT用户的默认密码是TIGER,orcl是你自己创建的实例名,根据个人情况来SQL> co 阅读全文
posted @ 2020-10-16 13:38 貔貅526 阅读(282) 评论(0) 推荐(0) 编辑
摘要: oracle中的having子句having子句having子句和group by一起使用,紧跟在group by的后边,having子句可以使用结果集中的列,也可以使用聚合函数(max、min、count、sum、svg)。having的作用是对分组后的结果进行过滤。这里在提一下where,whe 阅读全文
posted @ 2020-10-16 11:05 貔貅526 阅读(280) 评论(0) 推荐(0) 编辑
摘要: select b.dname,a.sal from (select deptno,sum(sal) sal from epm group by deptno ) a,(select deptno,dname) b where a.deptno=b.deptno order by 1,2;意思是根据第 阅读全文
posted @ 2020-10-15 15:04 貔貅526 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 执行SQL> select ename,sum_sal from (select ename,sum(sal) sum_sal from ( select * from emp)) group by ename;select ename,sum_sal from (select ename,sum( 阅读全文
posted @ 2020-10-15 10:03 貔貅526 阅读(2722) 评论(0) 推荐(0) 编辑