标签:partition art sysdate insert sel 范围分区 bsp sys nbsp
--范围分区
--建表
create table orders
(
order_id number(12),
order_date date not null,
order_total number(8,2)
)
partition by RANGE(order_date)
(
partition p1 VALUES less than (to_date(‘2015-01-01‘,‘yyyy-mm-dd‘)),
partition p2 VALUES less than (maxvalue)
)
INSERT INTO orders VALUES(1,SYSDATE,200)
SELECT * from orders partition(p1)
SELECT table_name,partition_name
FROM user_tab_partitions
WHERE table_name=UPPER(‘orders‘);
标签:partition art sysdate insert sel 范围分区 bsp sys nbsp
原文地址:http://www.cnblogs.com/shiwz/p/7541459.html