Inserting new columns in the middle of a table?

后端 未结 6 494
陌清茗
陌清茗 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:55

    ALTER TABLE TABLENAME ALTER COLUMN COLUMNNAME POSITION X;

提交回复
热议问题