> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Documentation for Manipulating Constraints

# Manipulating Constraints

Constraints could be added or deleted using following syntax:

```sql theme={null}
ALTER TABLE [db].name [ON CLUSTER cluster] ADD CONSTRAINT [IF NOT EXISTS] constraint_name CHECK expression;
ALTER TABLE [db].name [ON CLUSTER cluster] DROP CONSTRAINT [IF EXISTS] constraint_name;
```

See more on [constraints](/reference/statements/create/table#constraints).

Queries will add or remove metadata about constraints from table, so they are processed immediately.

<Tip>
  Constraint check **will not be executed** on existing data if it was added.
</Tip>

All changes on replicated tables are broadcast to ZooKeeper and will be applied on other replicas as well.
