Jak dodać ograniczenie kontroli do kolumny w Postgres
alter table foo
add constraint check_positive check (some_code in ('A','B'));
Tired Termite
alter table foo
add constraint check_positive check (some_code in ('A','B'));
ALTER TABLE foo
ADD CHECK (column_1 > 2);