EN
MySQL - does primary key have to be unique?
1 answers
0 points
Does the primary key have to be unique in MySQL?
1 answer
0 points
Yes, the primary key is always unique in MySQL and every other SQL.
Note:
- you don't have to explicitly define it as UNIQUE,
- there can only be one primary key for each table, and it can never be a NULL value.
0 commentsShow commentsAdd comment