partitioned by timestamp datatype
CREATE TABLE TEST_PARTITION(
TEST_AAA VARCHAR2(5) NOT NULL,
TEST_BBB VARCHAR2(10) NOT NULL,
TEST_DATE TIMESTAMP NOT NULL
)
PARTITION BY RANGE(TEST_DATE)
(PARTITION test_1 VALUES LESS THAN
(TIMESTAMP '2005-02-01 16:00:00.123456'),
PARTITION test_2 VALUES LESS THAN
(TIMESTAMP '2005-03-01 16:00:00.123456'),
PARTITION test_3 VALUES LESS THAN
(TIMESTAMP '2005-04-01 16:00:00.123456'));
CREATE TABLE TEST_PARTITION(
TEST_AAA VARCHAR2(5) NOT NULL,
TEST_BBB VARCHAR2(10) NOT NULL,
TEST_DATE TIMESTAMP NOT NULL
)
PARTITION BY RANGE(TEST_DATE)
( PARTITION test_1 VALUES LESS THAN
(TO_DATE('2005/02/01 00:00:00','YYYY/MM/DD HH24:MI:SS')),
PARTITION test_2 VALUES LESS THAN
(TO_DATE('2005/03/01 00:00:00','YYYY/MM/DD HH24:MI:SS')),
PARTITION test_3 VALUES LESS THAN
(TO_DATE('2005/04/01 00:00:00','YYYY/MM/DD HH24:MI:SS')));
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-567089/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- WPF DataTemplate DataType
- oralce datatype-long
- float datatype in Oracle databaseOracleDatabase
- Oracle Partitioned TablesOracle
- Overview of Partitioned IndexesViewIndex
- Local Partitioned IndexesIndex
- Convert Range-Partitioned Table To Interval-Range-Partitioned Table
- Global Range Partitioned IndexesIndex
- Global Hash Partitioned IndexesIndex
- Maintenance of Global Partitioned IndexesAINaNIndex
- Partitioned Tables (165)
- Create Reference-Partitioned Tables
- Partitioned Indexes on Composite PartitionsIndex
- float datatype in Oracle database 【Blog 搬家】OracleDatabase
- Oracle Partitioned Table:exchange的利用Oracle
- How to partition a non-partitioned table
- Bitmap Indexes on Partitioned Tables (225)Index
- Oracle timestamp_to_scn and scn_to_timestampOracle
- Oracle TimestampOracle
- Partitioned Index-Organized Tables (234)IndexZed
- Using Partitioned Indexes in OLTP ApplicationsIndexAPP
- mysql CURRENT_TIMESTAMP 和ON UPDATE CURRENT_TIMESTAMPMySql
- [Warning] TIMESTAMP with implicit DEFAULT --explicit_defaults_for_timestamp
- TIMESTAMP和TIMESTAMP WITH TIME ZONE之間的總結
- timestamp with local time zone型別和timestamp with time zone型別
- Row Movement Common Questions and Problems on Partitioned Tables
- MySQL之timestampMySql
- [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.explicit_defaults_for_timestamp
- FAQ: Row Movement Common Questions and Problems on Partitioned Tables
- [20171211]UNIQUE LOCAL(Partitioned)IndexIndex
- Miscellaneous Information about Creating Indexes on Partitioned TablesORMIndex
- ora-01439:column to be modified must be empty to change datatype
- JavaScript event.timeStampJavaScript
- jQuery event.timeStampjQuery
- 深入淺出timestamp
- 6、TIMESTAMP WITH TIME ZONE和TIMESTAMP WITH LOCAL TIME ZONE的實踐理解
- ORA-01455: converting column overflows integer datatype
- TiKV 新架構:Partitioned Raft KV 原理解析架構Raft