I am using postgesql.
I have already created a database and table. However in one of the table I want to add a constraint but it is not working. I wanted to set the value in column is_official to only T or F.
ALTER TABLE countrylanguage
ALTER COLUMN is_official
ADD CONSTRAINT conchk
CHECK (is_official IN ('T','F'));