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".
No comments:
Post a Comment