Can I logically reorder columns in a table?

后端 未结 8 1569
抹茶落季
抹茶落季 2020-12-15 02:04

If I\'m adding a column to a table in Microsoft SQL Server, can I control where the column is displayed logically in queries?

I don\'t want to mess with the physical

8条回答
  •  难免孤独
    2020-12-15 02:49

    It can be done using SQL, by modifying the system tables directly. For example, look here:

    Alter table - Add new column in between

    However, I would not recommend playing with system tables, unless it's absolutely necessary.

提交回复
热议问题