Add Column on SQL Server on Specific Place?

前端 未结 9 1737
-上瘾入骨i
-上瘾入骨i 2021-01-19 02:12

I would like to know if there\'s a way to add a column to an SQL Server table after it\'s created and in a specific position??

Thanks.

9条回答
  •  清歌不尽
    2021-01-19 02:23

    The only safe way of doing that is creating a new table (with the column where you want it), migrating the data, dropping the original table, and renaming the new table to the original name.

    This is what Management Studio does for you when you insert columns.

提交回复
热议问题