Single Choice Easy

QWhich DDL statement is used to remove a primary key constraint from a table in MySQL?

ID: #15461 DDL - Data Definition Language 109 views
Question Info
#15461Q ID
EasyDifficulty
DDL - Data Definition LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A REMOVE CONSTRAINT
  • B DROP PRIMARY KEY
  • C ALTER PRIMARY KEY
  • D DELETE PRIMARY KEY
Correct Answer

Explanation

The DROP PRIMARY KEY statement in MySQL is used to remove the primary key constraint from a table. It allows you to remove the primary key designation from one or more columns.

Share This Question

Challenge a friend or share with your study group.