How to insert columns at a specific position in existing table?

前端 未结 8 2125
野趣味
野趣味 2020-12-25 09:54

I created a table with 85 columns but I missed one column. The missed column should be the 57th one. I don\'t want to drop that table and create it again. I\'m looking to ed

8条回答
  •  难免孤独
    2020-12-25 10:26

    I tried to alter the table like so:

    table_name add column column_name after column column_name;
    

    The first column_name is the new column name, the second column_name is the existing column where you plan to insert into after.

提交回复
热议问题