Link Search Menu Expand Document


Use ALTER TABLE to delete a partition from a fact or dimension table.

Dropping a partition deletes the partition and the data stored in that partition.


ALTER TABLE <table> DROP PARTITION <value1>[,...<value2]


Parameter Description
<table> Name of the table from which to drop the partition.
<value1>[,...<value2>] An ordered set of one or more values corresponding to the partition key definition. This specifies the partition to drop. When dropping partitions with composite keys (more than one key value), specify all key values in the same order as they were defined. Only partitions with values that match the entire composite key are dropped.


See the examples in Working with partitions.