0. Oracle测试数据准备:
[oracle@db1 ~]$ sqlplus system/000000
SQL*Plus: Release 11.2.0.3.0 Production on Tue Mar 25 10:26:06 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> drop table test ;
Table dropped.
SQL> create table test(id int,name varchar2(20),age int,msg varchar2(20));
Table created.
SQL> insert into test values(1,'aaaaa',1,'aaaaa');
1 row created.
SQL> insert into test values(2,'bbbbb',2,'bbbbb');
1 row created.
SQL> insert into test values(3,'ccccc',3,'ccccc');
1 row created.
SQL> insert into test values(4,'ddddd',4,'ddddd');
1 row created.
SQL> insert into test values(5,'eeeee',5,'eeeee');
[oracle@db1 ~]$ sqlplus system/000000
SQL*Plus: Release 11.2.0.3.0 Production on Tue Mar 25 10:26:06 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> drop table test ;
Table dropped.
SQL> create table test(id int,name varchar2(20),age int,msg varchar2(20));
Table created.
SQL> insert into test values(1,'aaaaa',1,'aaaaa');
1 row created.
SQL> insert into test values(2,'bbbbb',2,'bbbbb');
1 row created.
SQL> insert into test values(3,'ccccc',3,'ccccc');
1 row created.
SQL> insert into test values(4,'ddddd',4,'ddddd');
1 row created.
SQL> insert into test values(5,'eeeee',5,'eeeee');