Answer the question
In order to leave comments, you need to log in
What is the correct way to declare a primary key in MySQL?
Hello colleagues!
What is more correct:
create table users(
user_id
user_login
PRIMARY_KEY(user_id, user_login)
)
create table users(
user_id PRIMARY_KEY
user_login UNIQUE
)
? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question