ALTER TABLE changes the definition of an existing table, even when it already contains data. It is useful for adding database-level checks when application validation alone may fail. section 2.3.1
Add a positive-price constraint
ALTER TABLE products.catalog ADD CONSTRAINT catalog_price_check CHECK (price > 0); Afterward, updating a product to a negative price fails with a check-constraint error. If existing rows already violate the rule, adding the constraint fails; correct those rows before enforcing it. section 2.3.1

