MySQL Forums
Forum List  »  Newbie

constraint command when creating primary key ?
Posted by: Nikolas Nikolaou
Date: January 28, 2015 06:32AM

Hi.I was wondering what the difference Is between these two example of adding a primary key ?


ADD CONSTRAINT pk_PersonID PRIMARY KEY (P_Id)

ADD PRIMARY KEY (P_Id)


What am I giving a name to with pk_personID and when I Just use the second example , Is a default name given ?

Options: ReplyQuote


Subject
Written By
Posted
constraint command when creating primary key ?
January 28, 2015 06:32AM


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.