How do I add more members to my ENUM-type column in MySQL?

前端 未结 7 1319
自闭症患者
自闭症患者 2020-12-02 08:05

The MySQL reference manual does not provide a clearcut example on how to do this.

I have an ENUM-type column of country names that I need to add more countries to. W

7条回答
  •  时光取名叫无心
    2020-12-02 08:15

    ALTER TABLE
        `table_name`
    MODIFY COLUMN
        `column_name2` enum(
            'existing_value1',
            'existing_value2',
            'new_value1',
            'new_value2'
        )
    NOT NULL AFTER `column_name1`;
    

提交回复
热议问题