MCQs > IT & Programming > MySQL > What is wrong with the following statement? create table foo (id int auto_increment, name int);

MySQL MCQs

What is wrong with the following statement?
create table foo (id int auto_increment, name int);

Answer

Correct Answer: The id column cannot be auto incremented because it has not been defined as a primary key

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MySQL Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MySQL Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it