Multiple Columns on Unique
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--
Subject
Views
Written By
Posted
Multiple Columns on Unique
1253
April 11, 2021 05:58PM
392
April 11, 2021 07:21PM
325
April 12, 2021 12:36PM
329
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.