postgresql数据添加两个字段联合唯一

alter table tb_safety_commitment add constraint uk_mac_vendor unique (company_code,promise_date);

你可能感兴趣的:(数据库)