How to rearrange MySQL columns?

前端 未结 5 1521
闹比i
闹比i 2020-12-01 03:35

I need to move the position of existing columns (for better visibility).

How can this be done without affecting the data?

5条回答
  •  臣服心动
    2020-12-01 03:51

    1. Alter Table table_name modify column_name column_datatype first;
    2. Alter Table table_name modify column_name column_datatype After other_column_name;

提交回复
热议问题