CREATE TABLE BLD_COORDS ( ID SERIAL PRIMARY KEY ,LV SMALLINT NOT NULL **,CHECK (LV IN (1, 2))** );
ALTER TABLE {테이블명} ADD CONSTRAINT {제약조건명} **CHECK ( {조건} );**