Inserting new columns in the middle of a table?

后端 未结 6 497
陌清茗
陌清茗 2020-12-20 14:29

When one uses \"ALTER TABLE tab ADD col\", the new column gets added to the end of the table. For example:

TABLE: TAB
COL_1 COL_2 COL_4

ALTER TABLE TAB ADD          


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 14:46

    It works.

    ALTER TABLE tablename ADD columnname datatype AFTER columnname;
    

提交回复
热议问题