cara menambahkan kendala periksa ke kolom di 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);