Drop Column – MySQL Command

Definition: Drop column is used to remove a column from a given table. This also removes all data from the column. It is written as alter table [table name] drop column [column name];
Also Known As: MySQL Drop Column, Remove Column, Delete Column
Examples:

alter table icecream drop column flavor;

This removes the column “flavor” from the table called “icecream”.



Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>