MYSQL DATABASE INTERVIEW QUESTIONS
Course:MySQL
Chapter:Chapter 8 - RDBMS Concepts
Topic:PRIMARY KEY
Questions Count:10
1
What is a primary key in MySQL?
Explanation:
2
How do you define a primary key when creating a table in MySQL?
Explanation:
3
Can a table have more than one primary key? Why or why not?
Explanation:
4
What is a composite primary key, and how do you create one in MySQL?
Explanation:
5
What are the differences between a primary key and a unique key in MySQL?
Explanation:
6
How do you add a primary key to an existing table in MySQL?
Explanation:
7
Explain the impact of primary keys on indexing and query performance in MySQL.
Explanation:
8
How does MySQL handle primary key constraints in a replication environment?
Explanation:
9
Can a primary key be changed in MySQL? If so, how?
Explanation:
10
Describe a scenario where choosing the correct primary key is crucial for database design, and explain the consequences of a poor primary key choice.
Explanation:
