हिंदी

Which SQL command is used to remove a column from a table in MySQL? - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Which SQL command is used to remove a column from a table in MySQL?

विकल्प

  • UPDATE

  • ALTER

  • DROP

  • DELETE

MCQ
Advertisements

उत्तर

ALTER

Explanation:

In MySQL, the ALTER TABLE command is used to modify the structure of a table.

To remove a column, we use:

ALTER TABLE table_name DROP COLUMN column_name;

So, the ALTER command is used for removing a column.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×