最近由于业务上的需要,需要在已有重复的数据上加联合唯一约束

 

查找资料:确认:

1 create index uk_union_miar_con on mmp_io_account_rule(material_item,supplier_product_gid,cwar);
2 alter table mmp_io_account_rule add constraint uk_union_miar_con unique (material_item,supplier_product_gid,cwar)enable novalidate;

这样就可以了

相关文章:

  • 2022-12-23
  • 2021-09-26
  • 2021-09-05
  • 2021-11-21
  • 2021-05-05
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案