How to remove a column from an existing table?

前端 未结 11 1008
旧巷少年郎
旧巷少年郎 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:59

    To add columns in existing table:

    ALTER TABLE table_name
     ADD
     column_name DATATYPE NULL  
    

    To delete columns in existing table:

    ALTER TABLE table_name
    DROP COLUMN column_name
    

提交回复
热议问题