数据库
阿尔伯特shen
这个作者很懒,什么都没留下…
展开
-
Oracle学习第三天
1.sqlplus / as sysdba --管理员登陆2.grant create view to scott --授权3.视图只能简化操作,不能提高性能4.with check option操作只能看得到的部分,不建议通过视图对表的数据进行修改5.orclae里面有物化视图,可以返回数据6.序列:就是一个数组,装在内存中,所以可以原创 2016-02-09 22:59:30 · 245 阅读 · 0 评论 -
Oracle学习第二天
1.外连接: a.左外连接:当where e.deptno=d.deptno不成立的时候,等号左边的表任然被包含 写法:where e.deptno=d.deptno(+) b.右外连接:当where e.deptno=d.deptno不成立的时候,等号右边的表任然被包含 写法:where e.deptno(+)=d.dept原创 2016-02-08 23:17:41 · 422 阅读 · 1 评论 -
Oracle学习第一天
1.数据文件:就是orclae\product\10.2\oradata\orcl文件下面的DBF文件,表空间由多个数据文件组成2.cmd连接数据库:sqlplus scott/tiger3.将文件输入到d盘 spool d:\a.txt 清屏:host cls4.显示用户:show user 当前用户下面的表:select * from tab;原创 2016-02-07 23:02:55 · 291 阅读 · 0 评论 -
Oracle第学习四天
1.光标练习(查询所有员工的姓名和薪水) declare --定义光标 cursor cemp is select ename,sal from emp; pename emp.ename%type; psal emp.sal%type; begin open cemp;原创 2016-02-11 22:53:16 · 349 阅读 · 0 评论