9
I would like to know the difference between the execution in the clauses Alter Table
when inserting the ADD CONSTRAINT
, such as running the following code:
ALTER TABLE Orders
ADD FOREIGN KEY (PersonID) REFERENCES Persons(PersonID);
What’s the difference in using this code:
ALTER TABLE Orders
ADD CONSTRAINT FK_PersonOrder
FOREIGN KEY (PersonID) REFERENCES Persons(PersonID);
There are improvements in performance, security, or some information that is important to know when it comes to database?
And taking advantage of the question,
exactly what makes the ADD CONSTRAINT
?(Currently I use MySQL
)