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
- Oracle TimestampOracle
- ORA-01455: converting column overflows integer datatype
- TiKV 新架構:Partitioned Raft KV 原理解析架構Raft
- [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.explicit_defaults_for_timestamp
- TIMESTAMP和TIMESTAMP WITH TIME ZONE之間的總結
- JavaScript event.timeStampJavaScript
- MySQL: datetime vs timestampMySql
- 7.71 CURRENT_TIMESTAMP
- [20190531]Timestamp Oddity.txt
- jQuery的AJAX請求中contentType和dataType的區別jQuery
- ×tamp變成×tamp問題
- muduo網路庫Timestamp類
- MySQL中的CURRENT_TIMESTAMPMySql
- mysql timestamp比較查詢MySql
- ON UPDATE CURRENT_TIMESTAMP請慎用
- mysql 資料型別TIMESTAMPMySQL 資料型別
- Timestamp-時間戳轉換時間戳
- Mongoose can't update timestampGo
- Oracle中Date和Timestamp的區別Oracle
- MySQL中datetime和timestamp的區別MySql
- Mysql中的Datetime和Timestamp比較MySql
- [20230207]ANSI DATE and TIMESTAMP SQL syntax.txtSQL
- Elasticsearch為記錄新增時間戳timestampElasticsearch時間戳
- String和Date、Timestamp之間的轉換
- [20200121]CURRENT_TIMESTAMP LOCALTIMESTAMP SYSTIMESTAMP的不同.TXT
- MySQL 的 timestamp 和 datetime 型別比較MySql型別
- MYSQL timestamp NOT NULL插入NULL的報錯問題MySqlNull
- 基於timestamp和nonce的防重放攻擊
- mysql資料庫date 、datetime、time、timestamp區別MySql資料庫
- `jsonb` 報錯 `invalid input syntax for type timestamp with time zone ““JSON
- 故障分析 | MySQL 遷移後 timestamp 列 cannot be nullMySqlNull
- [20191219]oracle timestamp資料型別的儲存.txtOracle資料型別
- ES & Filebeat 使用 Pipeline 處理日誌中的 @timestamp
- Mysql日期(DATE, TIME, DATETIME, TIMESTAMP)型別的比較MySql型別
- 教你如何使用MySQL中CURRENT_TIMESTAMP時間戳MySql時間戳
- Mysql時間欄位格式如何選擇,TIMESTAMP,DATETIME,INT?MySql
- 使用mybatis報錯:Error setting non null for parameter #4 with JdbcType TIMESTAMPMyBatisErrorNullJDBC