摘要:
登录mysql(ubuntu) mysql -uroot -pmysql123 source /home/ubuntu/test.sql 1.按照oracle语句写 select e.name, b.name from emp e, emp b where e.mgr = b.empno; 2.改造 阅读全文
摘要:
求出谁的工资比 scott 工资高 1.先求出scott工资 select sal from emp where ename = 'SCOTT'; 2.查询谁的工资比scott高 select * from emp where sal > (select sal from emp where ena 阅读全文
摘要:
按部门统计员工人数:部门号,部门名称,各部门人数 select d.deptno, d.dname, count(e.empno) from dept d, emp e where d.deptno = e.deptno group by d.deptno, d.dname 上诉结果没有出现40号部 阅读全文