SQL Query to add a new column after an existing column in SQL Server 2005

后端 未结 6 1145
后悔当初
后悔当初 2020-12-28 11:34

I need a SQL query which add a new column after an existing column, so the column will be added in a specific order.

Please suggest me if any ALTER quer

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 12:08

    If you want to alter order for columns in Sql server, There is no direct way to do this in SQL Server currently.

    Have a look at http://blog.sqlauthority.com/2008/04/08/sql-server-change-order-of-column-in-database-tables/

    You can change order while edit design for table.

提交回复
热议问题