Delete a column from an existing MySQL table

Drop column MySql command used to delete a column from an existing MySQL table. Syntax for deleting particular column for the able is : ALTER TABLE tablename DROP column-name for example ALTER TABLE moviesite DROP movie_name where moviesite  – Table…

1
Delete a column from an existing MySQL table

Drop column MySql command used to delete a column from an existing MySQL table.

Delete a column from an existing MySQL table
MySql Logo

Syntax for deleting particular column for the able is :

ALTER TABLE tablename DROP column-name

for example

ALTER TABLE moviesite DROP movie_name

where

moviesite  – Table name

movie_name – Column name.

One response to “Delete a column from an existing MySQL table”

  1. I get the error message ‘No database selected’ when I try to run this command.

    thanks

Leave a Reply