- 论坛徽章:
- 0
|
drop table test_p1;
create table test_p1
(
id number(5)
)
partition by range(id)
(
partition test_p1_p1 values less than (5),
partition test_p1_p2 values less than (15),
partition test_p1_p3 values less than (25),
partition test_p1_p4 values less than (35)
);
SQL> create table test_p1
2 (
3 id number(5)
4 )
5 partition by range(id)
6 (
7 partition test_p1_p1 values less than (5),
8 partition test_p1_p2 values less than (15),
9 partition test_p1_p3 values less than (25),
10 partition test_p1_p4 values less than (35)
11 );
Table created.
[oracle@localhost ~]$ imp test/test file=/tmp/test.dmp tables=test_p1 ignore=y
Import: Release 10.2.0.1.0 - Production on Sat Jan 6 07:18:48 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing TEST's objects into TEST
. importing TEST's objects into TEST
. . importing partition "TEST_P1":"TEST_P1_P1" 2 rows imported
. . importing partition "TEST_P1":"TEST_P1_P2" 2 rows imported
. . importing partition "TEST_P1":"TEST_P1_P3" 2 rows imported
Import terminated successfully without warnings.
SQL> select * from test_p1 partition(test_p1_p1);
ID
----------
2
SQL> select * from test_p1 partition(test_p1_p2);
ID
----------
8
12
SQL> select * from test_p1 partition(test_p1_p3);
ID
----------
18
22
SQL> select * from test_p1 partition(test_p1_p4);
ID
----------
28 |
|