postgresql · 2026-09-21
ALTER TABLE <table_name> ADD CONSTRAINT <constraint_name> UNIQUE (column1, column2);