摘要:
伪列:不属于任何一张表,但是会被所有的表共享 rownum:逻辑序列1 2 3 4....rowid:物理序列(18)真实的存放位置 rownum:不同的SQL语句在执行时,rownum的值不一致 在相同SQL语句在执行时,rounum的值不变 查询工资最高的前三条员工信息select rownum 阅读全文
posted @ 2020-06-27 21:09
myyismyy
阅读(122)
评论(0)
推荐(0)
摘要:
子查询 比SCOTT工资高的 员工信息 1:scott的工资->5200 select SAL from emp where ename = 'SCOTT' ; 2.>5200的员工信息 select *from emp where sal > ;->合二为一 select *from emp wh 阅读全文
posted @ 2020-06-27 17:03
myyismyy
阅读(190)
评论(0)
推荐(0)
摘要:
多表连接查询: 1.交叉连接(笛卡尔积):所有情况的组合 ,不推荐使用select * from emp ,dept ; 2.内连接 :多张表通过 相同字段进行匹配,只显示匹配成功的数据 a. select * from emp e ,dept d where e.deptno = d.deptno 阅读全文
posted @ 2020-06-27 16:14
myyismyy
阅读(116)
评论(0)
推荐(0)
摘要:
DDL: create/drop/truncate/alter创建表 create table mytab6 ( id number , name varchar(10), age number);注意事项: 1.权限和空间问题 2.表名的规定: a.必须以字母开头 b.表名只能包含: 大小写字母、 阅读全文
posted @ 2020-06-27 13:29
myyismyy
阅读(153)
评论(0)
推荐(0)