2014-01-22 69 views

回答

1
CREATE TABLE my_table 
(
    my_table_id serial NOT NULL PRIMARY KEY, 
    flag_one boolean NOT NULL, 
    flag_two boolean NOT NULL, 

    check (not (flag_one is true and flag_two is true)) 
);