How to remove a column from an existing table?

前端 未结 11 1007
旧巷少年郎
旧巷少年郎 2020-12-12 11:22

How to remove a column from an existing table?

I have a table MEN with Fname and Lname

I need to remove the Lnam

11条回答
  •  伪装坚强ぢ
    2020-12-12 11:41

    Generic:

    ALTER TABLE table_name DROP COLUMN column_name;
    

    In your case:

    ALTER TABLE MEN DROP COLUMN Lname;
    

提交回复
热议问题