易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle练习(mldn视频)二

创建表
create table person (pid int,name varchar2(20) unique,
age int check(age between 0 and 150),sex varchar(4) default '男',tp int,
address varchar(200),constraint person_pid_pk primary key(pid));
插入数据
insert into person values(0011,'刘三姐',25,'男',13930123021,'河北省曲阳县');
创建子表
create table book(bid int primary key not null,bname varchar2(20),bprice number(5,2),pid int,
constraint person_book_pid_fk foreign key(pid) references person(pid));
插入数据
insert into book values(0101,'简爱',7.85,0011);
增加部门50
select * from dept;
insert into dept values(50,'HR','HOUSTON');
在emp中插入新数据
insert into emp(empno,ename,job,sal,mgr,hiredate,comm,deptno)
values(8888,'张三','经理',9000,null,sysdate,null,50);
ROWNUM
查询前五个数据
select rownum,empno,ename,job,sal,hiredate
from emp where rownum<=5;
select * from
查询后五个数据
(select rownum rn,empno,ename,job,sal,hiredate from emp
where rownum <=10 ) temp
where temp.rn>5;


相关文档:

Oracle 游标的使用与管理

1、查看ORACLE最大游标数
C:\Documents and Settings\Administrator>sqlplus "sys/admin@test151 as sysdba"     (sys以dba登录test151服务)
SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 11月 5 09:08:04 2009
Copyright (c) 1982, 2002, Oracle Corporation.  All rights ......

ORACLE 10g下载地址

Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_client_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10 ......

oracle简单stream 一个用户单向复制配置

以下我做streamm同步两台机器间的某一个用户的操作步骤。很简单,看到stream

有很多要看的。
1.环境介绍
  主数据库SID : obpm
  操作系统 :    win 2003
  IP地址   :  192.168.0.1
  Global_name :
  oracle
version: 10.2.0.1
  从数据库SID ......

如何看懂ORACLE执行计划

如何看懂ORACLE执行计划
一、什么是执行计划
An explain plan is a representation of the access path that is taken when a query is executed within Oracle.
二、如何访问数据
At the physical level Oracle reads blocks of data. The smallest amount of data read is a single Oracle block, the largest is con ......

oracle练习题(mldn视频)一

1,列出最低薪金大于1500的各种工作及从事此工作的全部雇员人数。
select job,count(empno) from emp
where job in(select job from emp group by job having min(sal)>1500)
group by job;
2,列出薪金高于公司平均薪金的所有员工所在部门,上级领导,公司的工资等级。
select e.ename,d.dname,m.ename,e.sal,sa. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号