Add Column on SQL Server on Specific Place?

前端 未结 9 1710
-上瘾入骨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:37

    No.

    Basically, SSMS behind the scenes will copy the table, constraints, etc, drop the old table and rename the new.

    The reason is simple - columns are not meant to be ordered (nor are rows), so you're always meant to list which columns you want in a result set (select * is a bit of a hack)

提交回复
热议问题