我用的是ORACLE10G的数据库,现在想建一个分区表,用RANGE分区,按月或者天分区,年份可以忽略,可以建立这种分区表吗?我一直建立不成功说是要完整的时间格式,那位大哥帮帮偶啊,谢谢拉,下面是我今天早上写的,一直出错:
   create table test_time
(
    id integer not null,
    time date,
    valuer integer
)
partition by range(time)
(
    partition p1 values less than(to_date('01','dd')),
    partition p2 values less than(to_date('10','dd')),
    partition p3 values less than(to_date('20','dd')),
    partition p4 values less than(maxvalue)
);