MySQL Forums
Forum List  »  MySQL Workbench

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

Hello,

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?

--Avery--

Options: ReplyQuote


Subject
Views
Written By
Posted
Multiple Columns on Unique
191
April 11, 2021 05:58PM
71
April 11, 2021 07:21PM
62
April 12, 2021 01:35PM


Sorry, only registered users may post in this forum.

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.