tencent cloud

TDSQL Boundless

DROP PARTITION POLICY

PDF
Focus Mode
Font Size
Last updated: 2026-02-10 11:26:36

Description

Deleting the partition affinity policy will fail if any table is already bound to the target partition affinity policy.

Permission Requirements

None.

Syntax

DROP PARTITION POLICY [IF EXISTS] partition_policy_name

Parameter Description

Parameter
Required
Description
partition_policy_name
Required
Name of the partition affinity policy.

Examples

# Delete the existing partition affinity policy named pp1.
tdsql [(none)]> drop partition policy pp1;
Query OK, 0 rows affected (0.01 sec)

# Delete the non-existent partition affinity policy.
tdsql [(none)]> drop partition policy pp1;
ERROR 8596 (HY000): Unknown partition policy 'pp1'.

# Specify IF EXISTS to delete a non-existent partition affinity policy.
tdsql [(none)]> drop partition policy if exists pp1;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback