摘要: select * from emp where sal between 2500 and 5000;--使用between取区间 select * from emp where sal in(2500,5000);--可以指定取想要的数; select * from emp where sal be 阅读全文
posted @ 2017-08-31 19:58 五先森~ 阅读(119) 评论(0) 推荐(0)
摘要: 在芝加哥工作的人中,谁的工资最高 select * from (select e.ename from emp e join dept d on(e.deptno = d.deptno)where d.loc='CHICAGO' order by sal desc) where rownum=1; 阅读全文
posted @ 2017-08-16 14:48 五先森~ 阅读(78) 评论(0) 推荐(0)
摘要: #+TITLE: Oracle * 学前班 1. 登录 SQLPLUS : cmd : sqlplus [用户名]/[密码][@数据库] [参数] : sqlplus sys/orcl as sysdba -- 登录 sys 用户,必须指定 sysdba 或 sysoper 身份 : sqlplus 阅读全文
posted @ 2017-08-16 14:44 五先森~ 阅读(71) 评论(0) 推荐(0)