久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

SQL Server 2008 R2 將列添加到特定位置

SQL Server 2008 R2 Add column into a specific location(SQL Server 2008 R2 將列添加到特定位置)
本文介紹了SQL Server 2008 R2 將列添加到特定位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在使用 SQL Server 2008 R2,我希望將新列添加到表中列順序中的特定位置,而不是最后.我希望避免重新創建表.如何在不重新創建表格的情況下執行此操作?

I am using SQL Server 2008 R2 and I wish to add a new column into a specific spot in the column order in a table and not at the end. I wish to avoid having to recreate the table. How do I do this without recreating the table?

Table: Bob
==========
   Col1
   Col2

添加新列.

Table: Bob
==========
   Col1
   NewCol
   Col2

推薦答案

你不能.列始終添加在列列表的末尾.更改順序的唯一方法是從頭開始重新創建表.

You cannot. Column are always added at the end of the column list. The only way to change the order is to recreate the table from scratch.

話雖如此,列的實際物理順序或列定義的邏輯順序對您來說永遠無關緊要.如果您對列順序有依賴性,則您的代碼已損壞.如果您希望從列順序中獲得性能提升,那這些都是誤區.

That being said, it should never ever matter to you what is the actual physical order of the columns, nor the logical order of column definitions. If you have dependencies on column order, your code is broken. If you expect performance gains from column order, those are myths.

這篇關于SQL Server 2008 R2 將列添加到特定位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創建視圖?)
Create calculated value based on calculated value inside previous row(根據前一行內的計算值創建計算值)
How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對?) - IT屋-程序員軟件開發技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 一区二区三区免费在线观看 | 久艹在线 | 国产一区二区在线观看视频 | 好吊妞这里只有精品 | 亚洲三级免费 | 天堂av片| 国产日韩精品在线 | 超碰一区二区 | 日本激情网站 | 99视频免费在线观看 | 国产逼逼| 精品一区二区在线视频 | 日韩黄色大片 | 黄色av免费 | 精品久久久久久久久久久 | 久久久久久久91 | 玖玖色资源 | 欧美视频三区 | 日日干日日 | 黄色小视频在线观看 | 亚洲特级片 | 四虎8848精品成人免费网站 | 中文在线视频 | 五月天婷婷综合网 | 视频在线一区 | 久久国产亚洲 | 亚洲国产福利 | 亚洲午夜久久 | 草草在线视频 | 天天综合天天 | 人人澡人人爽 | 日本男人天堂 | 黄色片视频免费 | 97精品视频在线观看 | 欧美日韩激情 | 国产理论视频 | 国产欧美成人 | 五月婷婷激情综合 | 两性免费视频 | 午夜在线视频观看 | 闷骚老干部cao个爽 欧美区一区二 |