- 论坛徽章:
- 0
|
我的测试:
CREATE TABLE test10(
id varchar2(16),
name varchar2(16)
)
PARTITION BY RANGE(id)
(PARTITION test10_p1 VALUES LESS THAN ('010B00'),
PARTITION test10_p2 VALUES LESS THAN (MAXVALUE)
)
TABLESPACE test;
SQL> select id,name from test10 partition (test10_p1);
no rows selected
SQL> insert into test10 values('010Aff','x-man');
1 row created.
SQL> select id,name from test10 partition (test10_p1);
ID NAME
---------------- ----------------
010Aff x-man
SQL> insert into test10 values('0109ff','y-man');
1 row created.
SQL> select id,name from test10 partition (test10_p1);
ID NAME
---------------- ----------------
010Aff x-man
0109ff y-man
SQL> select max(id) from test10 partition (test10_p1);
MAX(ID)
----------------
010Aff |
|