MySQL Forums
Forum List  »  MySQL Workbench

Multiple Columns on Unique
Posted by: Avery Bentley Sollmann
Date: April 11, 2021 05:58PM


I am using MySQL Workbench for the first time as of today for a school assignment, and I'm trying to figure out how to make multiple columns be unique together. So for example, I want to have phone numbers have 3 columns for a phone number for an area code, prefix, and suffix; however, I do not see where I can put UNIQUE(areacode, prefix, suffix) in Workbench. I imported a SQL file I made with PHPMyAdmin, but the multi-column unique indices did not import. Is there a way I can do this?


Options: ReplyQuote

Written By
Multiple Columns on Unique
April 11, 2021 05:58PM
April 11, 2021 07:21PM
April 12, 2021 01:35PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.