We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
range_partitions
modify_table_partition
1 parent 4b728d9 commit 661937cCopy full SHA for 661937c
sql/plsql/PlSqlParser.g4
@@ -4695,7 +4695,9 @@ merge_table_partition
4695
;
4696
4697
4698
- : MODIFY PARTITION partition_name ((ADD | DROP) list_values_clause)? (ADD range_subpartition_desc)? (REBUILD? UNUSABLE LOCAL INDEXES)?
+ : MODIFY (PARTITION partition_name ((ADD | DROP) list_values_clause)? (ADD range_subpartition_desc)? (REBUILD? UNUSABLE LOCAL INDEXES)?
4699
+ | range_partitions
4700
+ )
4701
4702
4703
split_table_partition
sql/plsql/examples/alter_table_modify_partition_by_range.sql
@@ -0,0 +1,9 @@
1
+ALTER TABLE table_name
2
+ MODIFY
3
+ PARTITION BY RANGE (date_column)
4
+ INTERVAL ( NUMTODSINTERVAL (1, 'DAY') )
5
+ (
6
+ PARTITION
7
+ VALUES LESS THAN
8
+ (TO_DATE('2024-01-01', 'YYYY-MM-DD'))
9
+ );
0 commit comments