1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| SQL> create table table1(champ1 number, champ2 char(2), champ3 number,
champ4 number) partition by range(champ2) (
partition p1 values less than ('ÿÿ'), partition p2 values less than (maxvalue));
Table created.
SQL> insert into table1(champ2) values ('x');
1 row created.
SQL> insert into table1(champ2) values (null);
1 row created.
SQL> select * from table1 partition (p1);
CHAMP1 CH CHAMP3 CHAMP4
---------- -- ---------- ----------
x
SQL> select * from table1 partition (p2);
CHAMP1 CH CHAMP3 CHAMP4
---------- -- ---------- ---------- |
Partager