Creating UNIQUE constraint on multiple columns in MySQL Workbench EER diagram

后端 未结 3 468
逝去的感伤
逝去的感伤 2021-01-31 14:12

In MySQL Workbench\'s EER diagram, there is a checkbox to make each column in a table unique, not null, primary key etc.

However, I would like to have a UNIQUE constrain

3条回答
  •  孤城傲影
    2021-01-31 15:16

    it does not seem to be available : http://bugs.mysql.com/bug.php?id=48468 . it seems what you can is to create a multi column unique index on the indexes tab but for a multi column unique constraint, you need to run the creation command manually.

提交回复
热议问题