mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
ffe2cecb1b
* initial split * initial adjust links * make en buildable * re-normalize
716 B
716 B
toc_priority | toc_title |
---|---|
43 | CONSTRAINT |
Manipulating Constraints
Constraints could be added or deleted using following syntax:
ALTER TABLE [db].name ADD CONSTRAINT constraint_name CHECK expression;
ALTER TABLE [db].name DROP CONSTRAINT constraint_name;
See more on constraints.
Queries will add or remove metadata about constraints from table so they are processed immediately.
!!! warning "Warning" Constraint check will not be executed on existing data if it was added.
All changes on replicated tables are broadcasted to ZooKeeper and will be applied on other replicas as well.