मराठी

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×