I created a primary key
constraint in my table as follows:
CONSTRAINT PK_user_type PRIMARY KEY(id)
But now I need to rename it to:
CONSTRAINT PK_type PRIMARY KEY(id)
Based on this, I have the following questions:
1 - How do I rename a constraint
of type primary key
?
2 - The process for renaming a constraint of type foreign key
would be the same?
3 - In the title I referred to the bank MySQl
because it's what I'm currently using, but would the rename process be the same for other bank types? Such as oracle
and Microsoft Sql server
.