Advertisements
Advertisements
Question
How will you add a primary key to a relation?
Options
Alter table table_name add primary_key;
Alter table table_name add primary key(column_name);
Add primary key(column_name) alter table table_name;
Alter table table_name add primary_key(column_name);
MCQ
Solution
Alter table table_name add primary key(column_name);
shaalaa.com
SQL for Data Definition
Is there an error in this question or solution?