PARTITION BY RANGE ON A TIMESTAMP DATATYPE COLUMN.. HELP!! [message #18419] |
Wed, 30 January 2002 10:40 |
CATHYBEE
Messages: 20 Registered: January 2002
|
Junior Member |
|
|
CREATE TABLE tbl_ClaimsHistory (
TotalAmount INTEGER NOT NULL,
StatementThrough TIMESTAMP(4) NOT NULL,
ProviderTaxID VARCHAR2(10) NULL,
FormType CHAR(1) NOT NULL,
ClientTransmitDate TIMESTAMP(4) NOT NULL,
ClaimType CHAR(1) NOT NULL,
ClientBridgeDate TIMESTAMP(4) NOT NULL,
ProductCode CHAR(1) NOT NULL,
RedirectionFlag CHAR(1) NULL,
DepositTime TIMESTAMP(4) NOT NULL,
TransmitTime TIMESTAMP(4) NULL,
ClaimID RAW(32) NOT NULL,
ServiceStateCode CHAR(1) NOT NULL,
BillCode CHAR(1) NOT NULL,
TransmitType CHAR(1) NOT NULL,
BillingDate TIMESTAMP(4) NULL,
EditMasterProductVersion VARCHAR2(8) NULL,
CoreProductVersion VARCHAR2(7) NULL,
EditMasterVersion VARCHAR2(8) NULL,
DRGCode VARCHAR2(3) NULL,
BillType VARCHAR2(3) NULL,
ServiceLineCount SMALLINT NULL,
PayerIndicator CHAR(1) NULL,
ThirdPartyID VARCHAR2(5) NULL,
CISID VARCHAR2(4) NOT NULL,
CarrierKey VARCHAR2(9) NOT NULL,
Mailbox VARCHAR2(5) NULL)
PARTITION BY RANGE(DepositTime)
(PARTITION D0200201
VALUES LESS THAN(TO_TIMESTAMP('01-FEB-2002 00:00:00.0000','DD-MON-YYYY HH:MI:SS.FFFF')),
PARTITION D0200202
VALUES LESS THAN(TO_TIMESTAMP('01-MAR-2002 00:00:00.0000','DD-MON-YYYY HH:MI:SS.FFFF')),
PARTITION D0200203 VALUES LESS THAN(MAXVALUE))
SQL> /
VALUES LESS THAN(TO_TIMESTAMP('01-FEB-2002 00:00:00.0000','DD-MON-YYYY HH:MI:SS.FFFF')),
*
ERROR at line 31:
ORA-30078: partition bound must be TIME/TIMESTAMP WITH TIME ZONE literals
|
|
|
|
|
Re: PARTITION BY RANGE ON A TIMESTAMP DATATYPE COLUMN.. HELP!! [message #139371 is a reply to message #18419] |
Tue, 27 September 2005 13:29 |
whatisoracle
Messages: 1 Registered: September 2005
|
Junior Member |
|
|
around 3 years since the question but for the reference of those who hit the page on a search, an extract of the syntax would be like:
partition TABPART200509 values less than (
TIMESTAMP'2005-10-01 00:00:00 +0:00') tablespace <tablespace name> ,
partition TABPART200510 values less than
(TIMESTAMP'2005-11-01 00:00:00 +0:00') tablespace <tablespace name>
|
|
|