हिंदी

Which MySQL command helps to add a primary key constraint to any table that has already veen created? - Informatics Practices

Advertisements
Advertisements

प्रश्न

Which MySQL command helps to add a primary key constraint to any table that has already been created? 

विकल्प

  • UPDATE

  • INSERT INTO

  • ALTER TABLE

  • ORDER BY

MCQ

उत्तर

ALTER TABLE

Explanation:

The ALTER TABLE statement and the ADD CONSTRAINT clause can be used in SQL to add a primary key. The syntax is as follows: ALTER TABLE table_name. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×